Ejemplo n.º 1
0
 /**
  * Can optionally set the label, url and target for the item with the constructor.
  *
  * @since 2014.08.06 Call parent constructor.
  * @param string $label
  * @param string $url
  * @param string|null $target
  */
 public function __construct($label = '', $url = '', $target = null)
 {
     parent::__construct();
     $this->label = $label;
     $this->target = $target;
     $this->url = $url;
 }
Ejemplo n.º 2
0
 /**
  * Sets an empty items array.
  *
  * @since 2014.08.06 Call parent constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->clear();
 }