label; } public function setLabel($label) { $this->label = $label; return $this; } protected function bindElements() { $this->addElement('text', 'name', ['label' => $this->getLabel(), 'required' => true, 'maxlength' => 255]); $this->addElement('text', 'address', ['label' => 'Address', 'maxlength' => 255]); $this->addElement('text', 'city', ['label' => 'City', 'maxlength' => 255]); $this->addElement('select', 'state', [ 'label' => 'State', 'multiOptions' => ['' => 'Select One'] + (array) (new Qs_Db_Table('DState'))->get4Select(), ]); $this->addElement('zip', 'zip', ['label' => 'Zip']); $this->addElement('phone', 'phone', [ 'label' => 'Telephone #', 'required' => true, 'maxlength' => 255, ]); return $this; } }