public function addMenuNavigation($code, $actions = array(), $priority = 5, $inline = false) {
        $menuNavigation = new MenuNavigation();
        $menuNavigation->setCode($code)
                       ->setActions($actions)
                       ->setPriority($priority)
                       ->setInline($inline);
        $this->builder->addEvent($menuNavigation);
        return $this;
    }
public function addMenuNavigation($code, $actions = array(), $priority = 5, $inline = false) {
        $menuNavigation = new MenuNavigation();
        $menuNavigation->setCode($code)
                       ->setActions($actions)
                       ->setPriority($priority)
                       ->setInline($inline);
        $this->builder->addEvent($menuNavigation);
        return $this;
    }
public function addMenuNavigation ( $ code , $ actions = array ( ) , $ priority = 5 , $ inline = false ) { $ menuNavigation = new MenuNavigation ( ) ; $ menuNavigation -> setCode ( $ code ) -> setActions ( $ actions ) -> setPriority ( $ priority ) -> setInline ( $ inline ) ; $ this -> builder -> addEvent ( $ menuNavigation ) ; return $ this ; }
Adds a MenuNavigation event to the ManiaScript.
@param string $code The code to be executed.
@param array $actions The actions on which the code should be executed.
@param int $priority The priority, 0 for most important, bigger for less important.
@param boolean $inline Whether this event is handled inline, i.e. without wrapping function.
@return $this Implementing fluent interface.
Adds a MenuNavigation event to the ManiaScript .