Exemplo n.º 1
0
 /**
  *
  * @param \Gems_Menu $menu
  * @param string $glue Optional, text to put between link items
  */
 public function __construct(\Gems_Menu $menu, $glue = ' ')
 {
     $this->menu = $menu;
     parent::__construct();
     $this->setGlue($glue);
 }
Exemplo n.º 2
0
 /**
  *
  * @param mixed $arg_array \MUtil_Ra::args parameter passing
  */
 public function __construct($arg_array = null)
 {
     parent::__construct();
     $args = \MUtil_Ra::args(func_get_args());
     $this->init();
     // Passing the $args  to parent::__construct()
     // means offsetSet() is not called.
     foreach ($args as $key => $arg) {
         $this->offsetSet($key, $arg);
     }
 }