Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     $this->seatNumber = new \Variable\Integer(2, 'seatNumber');
     $this->category = new \Variable\String(null, 'category');
     $this->category->setLimit(255);
 }
Exemple #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');
 }
Exemple #3
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);
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $this->singleId = new \Variable\Integer(0, 'singleId');
     $this->title = new \Variable\String(null, 'title');
     $this->title->setLimit(100);
     $this->platform = new \Variable\String(null, 'platform');
     $this->platform->allowNull(true);
     $this->platform->setLimit(500);
     $this->siteAddress = new \Variable\Url(null, 'siteAddress');
     $this->siteAddress->allowNull(true);
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct();
     $this->firstName = new \Variable\String(null, 'firstName');
     $this->firstName->setLimit(50);
     $this->lastName = new \Variable\String(null, 'lastName');
     $this->lastName->setLimit(50);
     $this->title = new \Variable\String('', 'title');
     $this->title->setLimit(100);
     $this->picture = new \Variable\File(null, 'picture');
     $this->ticketId = new \Variable\Integer(0, 'ticketId');
     $this->multipleId = new \Variable\Integer(0, 'multipleId');
     $this->active = new \Variable\Bool(true, 'active');
 }