src/ShopListFilterBundle/pkgShop/objects/db/TPkgShopListfilter_TShopCategory.class.php
public function GetFieldPkgShopListfilterIdRecursive()
    {
        $sFilterId = $this->GetFromInternalCache('sActingFilterForCategory');
        if (null !== $sFilterId) {
            return $sFilterId;
        }

        if (isset($this->sqlData['lft']) && isset($this->sqlData['rgt'])) {
            $sFilterId = $this->findFilterFromNestedSet();
        } else {
            $sFilterId = '';
            if (empty($this->fieldPkgShopListfilterId) && !empty($this->fieldShopCategoryId)) {
                $oParent = $this->GetParent();
                if ($oParent) {
                    $sFilterId = $oParent->GetFieldPkgShopListfilterIdRecursive();
                }
            } else {
                $sFilterId = $this->fieldPkgShopListfilterId;
            }
        }

        $this->SetInternalCache('sActingFilterForCategory', $sFilterId);

        return $sFilterId;
    }
public function GetFieldPkgShopListfilterIdRecursive()
    {
        $sFilterId = $this->GetFromInternalCache('sActingFilterForCategory');
        if (null !== $sFilterId) {
            return $sFilterId;
        }

        if (isset($this->sqlData['lft']) && isset($this->sqlData['rgt'])) {
            $sFilterId = $this->findFilterFromNestedSet();
        } else {
            $sFilterId = '';
            if (empty($this->fieldPkgShopListfilterId) && !empty($this->fieldShopCategoryId)) {
                $oParent = $this->GetParent();
                if ($oParent) {
                    $sFilterId = $oParent->GetFieldPkgShopListfilterIdRecursive();
                }
            } else {
                $sFilterId = $this->fieldPkgShopListfilterId;
            }
        }

        $this->SetInternalCache('sActingFilterForCategory', $sFilterId);

        return $sFilterId;
    }
public function GetFieldPkgShopListfilterIdRecursive ( ) { $ sFilterId = $ this -> GetFromInternalCache ( 'sActingFilterForCategory' ) ; if ( null !== $ sFilterId ) { return $ sFilterId ; } if ( isset ( $ this -> sqlData [ 'lft' ] ) && isset ( $ this -> sqlData [ 'rgt' ] ) ) { $ sFilterId = $ this -> findFilterFromNestedSet ( ) ; } else { $ sFilterId = '' ; if ( empty ( $ this -> fieldPkgShopListfilterId ) && ! empty ( $ this -> fieldShopCategoryId ) ) { $ oParent = $ this -> GetParent ( ) ; if ( $ oParent ) { $ sFilterId = $ oParent -> GetFieldPkgShopListfilterIdRecursive ( ) ; } } else { $ sFilterId = $ this -> fieldPkgShopListfilterId ; } } $ this -> SetInternalCache ( 'sActingFilterForCategory' , $ sFilterId ) ; return $ sFilterId ; }
returns the ID of the Listfilter for that is set for this category or one of its ancestors.
returns the ID of the Listfilter for that is set for this category or one of its ancestors .