SysCategory
\nn\t3::SysCategory()
Simplifies the work and access to the sys_category of Typo3
Overview of Methods
\nn\t3::SysCategory()->findAll($branchUid = NULL);
Get list of all sys_categories
\nn\t3::SysCategory()->findAll();
Copied!
| @return array
\nn\t3::SysCategory()->findAllByUid($branchUid = NULL);
Get list of all sys_categories, return uid as key
\nn\t3::SysCategory()->findAllByUid();
Copied!
| @return array
\nn\t3::SysCategory()->findByUid($uidList = NULL);
Get sys_categories by uid(s).
\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);
Get the entire SysCategory tree (as an array). Each node has the attributes 'parent' and 'children' in order to recursively iterate through the tree.
// Get the entire tree
\nn\t3::SysCategory()->getTree();
// Get a specific branch of the tree
\nn\t3::SysCategory()->getTree( $uid );
// Get all branches of the tree, key is the UID of the SysCategory
\nn\t3::SysCategory()->getTree( true );
Copied!
ToDo: Check whether caching makes sense
| @return array