public function addButton($label, $meta = array())
    {
        $objButton = new Button($label, $meta);
        // *** Set the parent for the new field.
        $objButton->setMeta("parent", $this, true);

        $this->__fields->addObject($objButton);

        return $objButton;
    }
public function addButton($label, $meta = array())
    {
        $objButton = new Button($label, $meta);
        // *** Set the parent for the new field.
        $objButton->setMeta("parent", $this, true);

        $this->__fields->addObject($objButton);

        return $objButton;
    }
public function addButton ( $ label , $ meta = array ( ) ) { $ objButton = new Button ( $ label , $ meta ) ; // *** Set the parent for the new field. $ objButton -> setMeta ( "parent" , $ this , true ) ; $ this -> __fields -> addObject ( $ objButton ) ; return $ objButton ; }
Add a button to the navigation object

@param string $label Button label
@param array $meta The meta array
@return \ValidFormBuilder\Button
Add a button to the navigation object