Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($category=null, $constructor=null) | |
setParent (NodeInterface $parent) | |
& | getChildren ($recursive=false) |
getSibling ($right=true) | |
getParams () | |
getMetadata () | |
getPath () | |
getAuthor ($modifiedUser=false) | |
setAllLoaded () | |
getNumItems ($recursive=false) | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Fonctions membres publiques hérités de NodeInterface | |
addChild (NodeInterface $child) | |
removeChild (NodeInterface $child) | |
setSibling (NodeInterface $sibling, $right=true) | |
Fonctions membres publiques hérités de ImmutableNodeInterface | |
getParent () | |
getRoot () | |
hasChildren () | |
hasParent () | |
Champs de données | |
$id = null | |
$asset_id = null | |
$parent_id = null | |
$lft = null | |
$rgt = null | |
$level = null | |
$extension = null | |
$title = null | |
$alias = null | |
$description = null | |
$published = null | |
$checked_out = null | |
$checked_out_time = null | |
$access = null | |
$params = null | |
$metadesc = null | |
$metakey = null | |
$metadata = null | |
$created_user_id = null | |
$created_time = null | |
$modified_user_id = null | |
$modified_time = null | |
$hits = null | |
$language = null | |
$numitems = null | |
$childrennumitems = null | |
$slug = null | |
$assets = null | |
Attributs protégés | |
$_path = array() | |
$_allChildrenloaded = false | |
$_constructor = null | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Helper class to load Categorytree
Class constructor
array | $category | The category data. |
Categories | $constructor | The tree constructor. |
Références $category.
getAuthor | ( | $modifiedUser = false | ) |
Returns the user that created the category
boolean | $modifiedUser | Returns the modified_user when set to true |
Références Factory\getUser().
& getChildren | ( | $recursive = false | ) |
Get the children of this node
boolean | $recursive | False by default |
Implémente ImmutableNodeInterface.
Références Joomla\CMS\Tree\$_children, $items, et $temp.
getMetadata | ( | ) |
getNumItems | ( | $recursive = false | ) |
Returns the number of items.
boolean | $recursive | If false number of children, if true number of descendants |
Références $count, et Joomla\CMS\Tree\getChildren().
getPath | ( | ) |
Returns the category path to the root category
getSibling | ( | $right = true | ) |
Returns the right or left sibling of a category
boolean | $right | If set to false, returns the left sibling |
Implémente ImmutableNodeInterface.
Références Joomla\CMS\Tree\$_leftSibling, Joomla\CMS\Tree\$_rightSibling, et $temp.
setAllLoaded | ( | ) |
Set to load all children
setParent | ( | NodeInterface | $parent | ) |
Set the parent of this category
If the category already has a parent, the link is unset
CategoryNode | null | $parent | CategoryNode for the parent to be set or null |
Implémente NodeInterface.
|
protected |
|
protected |
|
protected |
$access = null |
$alias = null |
$asset_id = null |
$assets = null |
$checked_out = null |
$checked_out_time = null |
$childrennumitems = null |
$created_time = null |
$created_user_id = null |
$description = null |
$lft = null |
$metadata = null |
$metadesc = null |
$metakey = null |
$modified_time = null |
$modified_user_id = null |
$numitems = null |
$params = null |
$parent_id = null |
$published = null |
$rgt = null |
$slug = null |
$title = null |