Class rex_category

Object Oriented Framework: Bildet eine Kategorie der Struktur ab.

rex_structure_element uses rex_instance_pool_trait, rex_instance_list_pool_trait
Extended by rex_category
Package: redaxo\structure
Located at redaxo/src/addons/structure/lib/category.php

Methods summary

public static null|self
# getCurrent( integer $clang = null )

Return the current category.

public static self[]
# getRootCategories( boolean $ignoreOfflines = false, integer $clang = null )

Return a list of top level categories, ie. categories that have no parent. Returns an array of rex_category objects sorted by $priority.

public integer
# getPriority( )

Returns the article priority.

public self[]
# getChildren( boolean $ignoreOfflines = false )

Return a list of all subcategories. Returns an array of rex_category objects sorted by $priority.

public self
# getParent( )

Returns the parent category.

public boolean
# isParent( rex_category $otherCat )

Returns TRUE if this category is the direct parent of the other category.

public rex_article[]
# getArticles( boolean $ignoreOfflines = false )

Return a list of articles in this category Returns an array of rex_article objects sorted by $priority.

public rex_article
# getStartArticle( )

Return the start article for this category.

public string
# getName( )

Returns the name of the category.

public string
# getPath( )

Returns the path of the category.

public static boolean
# hasValue( string $value )
public boolean
# isPermitted( )

Returns whether the element is permitted.

Methods inherited from rex_structure_element

__construct(), _hasValue(), _toAttributeString(), get(), getChildElements(), getClang(), getClangId(), getClassVars(), getCreateDate(), getCreateUser(), getId(), getParentId(), getParentTree(), getPathAsArray(), getTemplateId(), getUpdateDate(), getUpdateUser(), getUrl(), getValue(), hasTemplate(), inParentTree(), isNotFoundArticle(), isOnline(), isSiteStartArticle(), isStartArticle(), resetClassVars(), toLink()

Methods used from rex_instance_pool_trait

addInstance(), clearInstance(), clearInstancePool(), getInstance(), hasInstance()

Methods used from rex_instance_list_pool_trait

addInstanceList(), clearInstanceList(), clearInstanceListPool(), getInstanceList(), hasInstanceList()

Properties summary

Properties inherited from rex_structure_element

$catname, $catpriority, $clang_id, $classVars, $createdate, $createuser, $id, $name, $parent_id, $path, $priority, $startarticle, $status, $template_id, $updatedate, $updateuser