src/ShopBundle/objects/TCMSTableEditor/TCMSShopTableEditor_ShopArticle.class.php
protected function isNewVariant()
    {
        $bIsNewVariant = false;
        if (!is_null($this->sRestriction) && !is_null($this->sRestrictionField) && '_id' == substr($this->sRestrictionField, -3)) {
            if ('variant_parent_id' == $this->sRestrictionField) {
                $bIsNewVariant = true;
            }
        }

        return $bIsNewVariant;
    }
protected function isNewVariant()
    {
        $bIsNewVariant = false;
        if (!is_null($this->sRestriction) && !is_null($this->sRestrictionField) && '_id' == substr($this->sRestrictionField, -3)) {
            if ('variant_parent_id' == $this->sRestrictionField) {
                $bIsNewVariant = true;
            }
        }

        return $bIsNewVariant;
    }
protected function isNewVariant ( ) { $ bIsNewVariant = false ; if ( ! is_null ( $ this -> sRestriction ) && ! is_null ( $ this -> sRestrictionField ) && '_id' == substr ( $ this -> sRestrictionField , - 3 ) ) { if ( 'variant_parent_id' == $ this -> sRestrictionField ) { $ bIsNewVariant = true ; } } return $ bIsNewVariant ; }
determine if the current loaded record is a variant or a parent.

@return bool
determine if the current loaded record is a variant or a parent .