\JMenuNode
A Node for JAdminCssMenu
Synopsis
class JMenuNode
extends JObject
{
- // members
- public $title;
- public $id;
- public $link;
- public $target;
- public $class;
- public $active;
- protected JMenuNode $_parent;
- protected $_children;
- // Inherited members from JObject
- protected $_errors;
- // methods
- public void __construct()
- public void addChild()
- public void setParent()
- public array getChildren()
- public mixed getParent()
- public boolean hasChildren()
- public boolean hasParent()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Members
protected
- $_children
—
array
Array of Children - $_errors
—
array
An array of error messages or Exception objects. - $_parent
—
JMenuNode
Parent node
public
- $active
—
boolean
Active Node? - $class
—
string
CSS Class for node - $id
—
string
Node Id - $link
—
string
Node Link - $target
—
string
Link Target - $title
—
string
Node Title
Methods
public
- __construct() — Constructor for the class.
- addChild() — Add child to this node
- getChildren() — Get the children of this node
- getParent() — Get the parent of this node
- hasChildren() — Test if this node has children
- hasParent() — Test if this node has a parent
- setParent() — Set the parent of a this node
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.