%PDF- %PDF-
Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/ReviewBase/src/ReviewBase/Form/ |
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/ReviewBase/src/ReviewBase/Form/AddressForm.php |
<?php /** * Description of AddressForm * * @author Florian Koller ( conlabz GmbH ) <florian.koller at conlabz.de> */ namespace ReviewBase\Form; use Zend\Form\Element\Hidden; use Zend\Form\Element\Submit; use Zend\Form\Element\Text; use Zend\Form\Form as ZForm; class AddressForm extends ZForm { protected $submit; protected $street; protected $postcode; protected $city; public function __construct($name = null, $options = array()) { parent::__construct($name, $options); } public function init() { parent::init(); $this->street = new Text("street"); $this->street->setLabel('Strasse'); $this->add($this->street); $this->postcode = new Text("postcode"); $this->postcode->setLabel('Postleitzahl'); $this->add($this->postcode); $this->city = new Text("city"); $this->city->setLabel('Stadt'); $this->add($this->city); $this->submit = new Submit("submit"); $this->submit->setValue("Suchen"); //make sure the submit button comes last in the form $this->add($this->submit, ['priority' => -10]); } }