Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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');
 }
Esempio n. 3
0
 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);
 }