SysCategory
\nn\t3::SysCategory()
Vereinfacht die Arbeit und den Zugriff auf die sys_category von Typo3
Overview of Methods
\nn\t3::SysCategory()->findAll($branchUid = NULL);
Liste aller sys_categories holen
\nn\t3::SysCategory()->findAll();
Copied!
| @return array
\nn\t3::SysCategory()->findAllByUid($branchUid = NULL);
Liste aller sys_categories holen, uid als Key zurückgeben
\nn\t3::SysCategory()->findAllByUid();
Copied!
| @return array
\nn\t3::SysCategory()->findByUid($uidList = NULL);
sys_categories anhand von uid(s) holen.
\nn\t3::SysCategory()->findByUid( 12 );
\nn\t3::SysCategory()->findByUid( '12,11,5' );
\nn\t3::SysCategory()->findByUid( [12, 11, 5] );
Copied!
| @return array|\TYPO3\CMS\Extbase\Domain\Model\Category
\nn\t3::SysCategory()->getTree($branchUid = NULL);
Den gesamten SysCategory-Baum (als Array) holen. Jeder Knotenpunkt hat die Attribute 'parent' und 'children', um rekursiv durch Baum iterieren zu können.
// Gesamten Baum holen
\nn\t3::SysCategory()->getTree();
// Bestimmten Ast des Baums holen
\nn\t3::SysCategory()->getTree( $uid );
// Alle Äste des Baums holen, key ist die UID der SysCategory
\nn\t3::SysCategory()->getTree( true );
Copied!
ToDo: Prüfen, ob Caching sinnvoll ist
| @return array