Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param string $title
  *   Name of the leaf.
  * @param string $body
  *   Body of the leaf.
  * @param int $leaf_id
  *   ID of the leaf.
  */
 public function __construct($title, $body, $leaf_id)
 {
     parent::__construct($title);
     $this->body = $body;
     $this->leafID = $leaf_id;
     $this->drupalNID = -1;
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param string $title
  *   The title of the Tree.
  * @param array $children
  *   Array of children.
  */
 public function __construct($title, $children)
 {
     parent::__construct($title);
     $this->children = $children;
 }