Class rex_media_category

Object Oriented Framework: Bildet eine Kategorie im Medienpool ab.

rex_media_category uses rex_instance_pool_trait, rex_instance_list_pool_trait
Package: redaxo\mediapool
Located at redaxo/src/addons/mediapool/lib/media_category.php

Methods summary

public static self
# get( integer $id )
public static self[]
# getRootCategories( )
protected static self[]
# getChildCategories( integer $parentId )
public integer
# getId( )
public string
# getName( )
public string
# getPath( )
public int[]
# getPathAsArray( )

Returns the path ids of the category as an array.

public string
# getUpdateUser( )
public integer
# getUpdateDate( )
public string
# getCreateUser( )
public integer
# getCreateDate( )
public integer
# getParentId( )
public self
# getParent( )
public self[]
# getParentTree( )

Get an array of all parentCategories. Returns an array of rex_media_category objects sorted by $priority.

public boolean
# inParentTree( self $anObj )

Checks if $anObj is in the parent tree of the object.

public self[]
# getChildren( )
public rex_media[]
# getMedia( )
public boolean
# isParent( rex_media_category $mediaCat )

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()