public function __construct() { parent::__construct(); $this->title = new \Variable\String(null, 'title'); $this->title->setLimit(100); $this->title->allowEmpty(false); $this->electionId = new \Variable\Integer(0, 'electionId'); $this->electionId->setRange(1); }
public function __construct() { parent::__construct(); $this->title = new \Variable\String(null, 'title'); $this->title->setLimit(100); $this->title->allowEmpty(false); $this->startDate = new \Variable\DateTime(null, 'startDate'); $this->endDate = new \Variable\DateTime(null, 'endDate'); }
public function __construct() { $this->physical_address = new ContactInfo\PhysicalAddress(); $this->phone_number = new \Variable\String(null, 'phone_number'); $this->fax_number = new \Variable\String(null, 'phone_number'); $this->fax_number->allowEmpty(true); $this->social = new ContactInfo\Social(); $this->map = new ContactInfo\Map(); $this->email = new \Variable\Email(null, 'email'); $this->email->allowNull(true); }