Location: PHPKode > projects > AModules3 > amodules-3.0.1/lib/Form/Submit.php
<?
/**
 * Displays submit button
 *
 * @author		Romans <hide@address.com>
 * @copyright	See file COPYING
 * @version		$Id$
 */
class Form_Submit extends AbstractView {
    public $label;
    public $no_save=null;
    function setLabel($_label){
        $this->label=$_label;
        return $this;
    }
    function setNoSave(){
        // Field value will not be saved into defined source (such as database)
        $this->no_save=true;
        return $this;
    }
    function render(){
        $this->owner->template_chunks['form']->append('form_buttons','<input type="submit" name="'.$this->name.
                                                      '" value="'.$this->label.'">');
    }
}
Return current item: AModules3