src/ShopBundle/objects/db/TShopArticle.class.php
public function GetFieldShopAttributeValueList($sOrderBy = '')
    {
        $oAttributeValueList = parent::GetFieldShopAttributeValueList($sOrderBy);
        if (0 == $oAttributeValueList->Length() && $this->IsVariant()) {
            $oAttributeValueList = $this->GetFieldVariantParent()->GetFieldShopAttributeValueList($sOrderBy);
        }
        $oAttributeValueList->bAllowItemCache = true;

        return $oAttributeValueList;
    }
public function GetFieldShopAttributeValueList($sOrderBy = '')
    {
        $oAttributeValueList = parent::GetFieldShopAttributeValueList($sOrderBy);
        if (0 == $oAttributeValueList->Length() && $this->IsVariant()) {
            $oAttributeValueList = $this->GetFieldVariantParent()->GetFieldShopAttributeValueList($sOrderBy);
        }
        $oAttributeValueList->bAllowItemCache = true;

        return $oAttributeValueList;
    }
public function GetFieldShopAttributeValueList ( $ sOrderBy = '' ) { $ oAttributeValueList = parent :: GetFieldShopAttributeValueList ( $ sOrderBy ) ; if ( 0 == $ oAttributeValueList -> Length ( ) && $ this -> IsVariant ( ) ) { $ oAttributeValueList = $ this -> GetFieldVariantParent ( ) -> GetFieldShopAttributeValueList ( $ sOrderBy ) ; } $ oAttributeValueList -> bAllowItemCache = true ; return $ oAttributeValueList ; }
get article attribute value list - if we are a variant and no attribute values are set, then we return the attribute values of
the parent.

@param string $sOrderBy - an sql order by string (without the order by)

@return TdbShopAttributeValueList
get article attribute value list - if we are a variant and no attribute values are set then we return the attribute values of the parent .