src/ShopBundle/objects/db/TShopCategory.class.php
public function parentCategoriesAreActive()
    {
        $treeIsActive = true;
        $parentCategoryList = $this->getParentCategories();
        while ($category = $parentCategoryList->Next()) {
            if (false === $category->fieldActive) {
                $treeIsActive = false;
                break;
            }
        }

        return $treeIsActive;
    }
public function parentCategoriesAreActive()
    {
        $treeIsActive = true;
        $parentCategoryList = $this->getParentCategories();
        while ($category = $parentCategoryList->Next()) {
            if (false === $category->fieldActive) {
                $treeIsActive = false;
                break;
            }
        }

        return $treeIsActive;
    }
public function parentCategoriesAreActive ( ) { $ treeIsActive = true ; $ parentCategoryList = $ this -> getParentCategories ( ) ; while ( $ category = $ parentCategoryList -> Next ( ) ) { if ( false === $ category -> fieldActive ) { $ treeIsActive = false ; break ; } } return $ treeIsActive ; }
return true if the tree until this category is active.

@return bool
return true if the tree until this category is active .