src/ShopListFilterBundle/objects/db/ListfilterItems/TPkgShopListfilterItemVariant.class.php
public function GetItemName($sFieldName, $sFieldValue, $aRow)
    {
        static $aLookupList = array();

        if (!array_key_exists($aRow['id'], $aLookupList)) {
            $aLookupList[$aRow['id']] = array();
            $oVariantType = $this->GetVariantType($aRow);
            if ($oVariantType) {
                $oArticle = TdbShopArticle::GetNewInstance();
                $oArticle->LoadFromRow($aRow);

                $aResult = array();
                $oVariantValues = $oArticle->GetVariantValuesAvailableForType($oVariantType);
                if ($oVariantValues) {
                    while ($oVariantValue = $oVariantValues->Next()) {
                        if (!empty($oVariantValue->fieldNameGrouped)) {
                            $aResult[] = $oVariantValue->fieldNameGrouped;
                        } else {
                            $aResult[] = $oVariantValue->GetName();
                        }
                    }
                }
                $aLookupList[$aRow['id']] = $aResult;
            }
        }

        return $aLookupList[$aRow['id']];
    }
public function GetItemName($sFieldName, $sFieldValue, $aRow)
    {
        static $aLookupList = array();

        if (!array_key_exists($aRow['id'], $aLookupList)) {
            $aLookupList[$aRow['id']] = array();
            $oVariantType = $this->GetVariantType($aRow);
            if ($oVariantType) {
                $oArticle = TdbShopArticle::GetNewInstance();
                $oArticle->LoadFromRow($aRow);

                $aResult = array();
                $oVariantValues = $oArticle->GetVariantValuesAvailableForType($oVariantType);
                if ($oVariantValues) {
                    while ($oVariantValue = $oVariantValues->Next()) {
                        if (!empty($oVariantValue->fieldNameGrouped)) {
                            $aResult[] = $oVariantValue->fieldNameGrouped;
                        } else {
                            $aResult[] = $oVariantValue->GetName();
                        }
                    }
                }
                $aLookupList[$aRow['id']] = $aResult;
            }
        }

        return $aLookupList[$aRow['id']];
    }
public function GetItemName ( $ sFieldName , $ sFieldValue , $ aRow ) { static $ aLookupList = array ( ) ; if ( ! array_key_exists ( $ aRow [ 'id' ] , $ aLookupList ) ) { $ aLookupList [ $ aRow [ 'id' ] ] = array ( ) ; $ oVariantType = $ this -> GetVariantType ( $ aRow ) ; if ( $ oVariantType ) { $ oArticle = TdbShopArticle :: GetNewInstance ( ) ; $ oArticle -> LoadFromRow ( $ aRow ) ; $ aResult = array ( ) ; $ oVariantValues = $ oArticle -> GetVariantValuesAvailableForType ( $ oVariantType ) ; if ( $ oVariantValues ) { while ( $ oVariantValue = $ oVariantValues -> Next ( ) ) { if ( ! empty ( $ oVariantValue -> fieldNameGrouped ) ) { $ aResult [ ] = $ oVariantValue -> fieldNameGrouped ; } else { $ aResult [ ] = $ oVariantValue -> GetName ( ) ; } } } $ aLookupList [ $ aRow [ 'id' ] ] = $ aResult ; } } return $ aLookupList [ $ aRow [ 'id' ] ] ; }
return the item name for a given ID.

@param string $sFieldName
@param string $sFieldValue
@param array  $aRow

@return string
return the item name for a given ID .