/** * Constructor: The constructor to create a new Submit object. * * @param object $form the form where this field is located on * @param string $name the name of the button * @return \FormHandler\Button\Submit * @author Teye Heimans */ public function __construct($form, $name) { return parent::__construct($form, $name)->setType(self::TYPE_SUBMIT)->setCaption(\FormHandler\Language::get(26)); }
/** * Constructor * * @param FormHandler $form the form where the image button is located on * @param string $name the name of the button * @param string $image the image we have to use as button * @return \FormHandler\Button\Image * @author Teye Heimans */ public function __construct(FormHandler $form, $name) { return parent::__construct($form, $name); }