src/ShopListFilterBundle/objects/db/TPkgShopListfilter.class.php
public function GetFilterValuesForFilterType($sFilterSystemName)
    {
        $aActiveFilter = $this->GetFromInternalCache('aFilterDataAsArrayFor'.$sFilterSystemName);
        if (is_null($aActiveFilter)) {
            $aActiveFilter = false;

            $aFilterData = $this->GetCurrentFilterAsArray();
            if (is_array($aFilterData) && array_key_exists(TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA, $aFilterData) && is_array($aFilterData[TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA]) && count($aFilterData[TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA]) > 0) {
                $aFilterData = $aFilterData[TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA];
                $oFilterId = TdbPkgShopListfilterItem::GetNewInstance();
                if ($oFilterId->LoadFromFields(array('pkg_shop_listfilter_id' => $this->id, 'systemname' => $sFilterSystemName))) {
                    if (is_array($aFilterData) && array_key_exists($oFilterId->id, $aFilterData)) {
                        if (is_array($aFilterData[$oFilterId->id]) && count($aFilterData[$oFilterId->id]) > 0) {
                            $aActiveFilter = $aFilterData[$oFilterId->id];
                        }
                    }
                }
            }
            $this->SetInternalCache('aFilterDataAsArrayFor'.$sFilterSystemName, $aActiveFilter);
        }

        return $aActiveFilter;
    }
public function GetFilterValuesForFilterType($sFilterSystemName)
    {
        $aActiveFilter = $this->GetFromInternalCache('aFilterDataAsArrayFor'.$sFilterSystemName);
        if (is_null($aActiveFilter)) {
            $aActiveFilter = false;

            $aFilterData = $this->GetCurrentFilterAsArray();
            if (is_array($aFilterData) && array_key_exists(TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA, $aFilterData) && is_array($aFilterData[TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA]) && count($aFilterData[TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA]) > 0) {
                $aFilterData = $aFilterData[TdbPkgShopListfilterItem::URL_PARAMETER_FILTER_DATA];
                $oFilterId = TdbPkgShopListfilterItem::GetNewInstance();
                if ($oFilterId->LoadFromFields(array('pkg_shop_listfilter_id' => $this->id, 'systemname' => $sFilterSystemName))) {
                    if (is_array($aFilterData) && array_key_exists($oFilterId->id, $aFilterData)) {
                        if (is_array($aFilterData[$oFilterId->id]) && count($aFilterData[$oFilterId->id]) > 0) {
                            $aActiveFilter = $aFilterData[$oFilterId->id];
                        }
                    }
                }
            }
            $this->SetInternalCache('aFilterDataAsArrayFor'.$sFilterSystemName, $aActiveFilter);
        }

        return $aActiveFilter;
    }
public function GetFilterValuesForFilterType ( $ sFilterSystemName ) { $ aActiveFilter = $ this -> GetFromInternalCache ( 'aFilterDataAsArrayFor' . $ sFilterSystemName ) ; if ( is_null ( $ aActiveFilter ) ) { $ aActiveFilter = false ; $ aFilterData = $ this -> GetCurrentFilterAsArray ( ) ; if ( is_array ( $ aFilterData ) && array_key_exists ( TdbPkgShopListfilterItem :: URL_PARAMETER_FILTER_DATA , $ aFilterData ) && is_array ( $ aFilterData [ TdbPkgShopListfilterItem :: URL_PARAMETER_FILTER_DATA ] ) && count ( $ aFilterData [ TdbPkgShopListfilterItem :: URL_PARAMETER_FILTER_DATA ] ) > 0 ) { $ aFilterData = $ aFilterData [ TdbPkgShopListfilterItem :: URL_PARAMETER_FILTER_DATA ] ; $ oFilterId = TdbPkgShopListfilterItem :: GetNewInstance ( ) ; if ( $ oFilterId -> LoadFromFields ( array ( 'pkg_shop_listfilter_id' => $ this -> id , 'systemname' => $ sFilterSystemName ) ) ) { if ( is_array ( $ aFilterData ) && array_key_exists ( $ oFilterId -> id , $ aFilterData ) ) { if ( is_array ( $ aFilterData [ $ oFilterId -> id ] ) && count ( $ aFilterData [ $ oFilterId -> id ] ) > 0 ) { $ aActiveFilter = $ aFilterData [ $ oFilterId -> id ] ; } } } } $ this -> SetInternalCache ( 'aFilterDataAsArrayFor' . $ sFilterSystemName , $ aActiveFilter ) ; } return $ aActiveFilter ; }
return the filter values set for the filter with the given system name. return false if none are set.

@param array $sFilterSystemName

@return array
return the filter values set for the filter with the given system name . return false if none are set .