src/UI/Menu.php
public function add($entry, $push=false)
    {
        if ( $push ) {
            array_unshift($this->menu, $entry);
        } else {
            $this->menu[] = $entry;
        }
        return $this;
    }
public function add($entry, $push=false)
    {
        if ( $push ) {
            array_unshift($this->menu, $entry);
        } else {
            $this->menu[] = $entry;
        }
        return $this;
    }
public function add ( $ entry , $ push = false ) { if ( $ push ) { array_unshift ( $ this -> menu , $ entry ) ; } else { $ this -> menu [ ] = $ entry ; } return $ this ; }
Add an entry to the menu

@param $entry a MenuEntry
@param $push true if this is to be put before the rest of the items in the menue

@return Menu The instance is returned to allow chaining syntax
Add an entry to the menu