public function __construct() { parent::__construct(); $this->title = new \phpws2\Variable\TextOnly(null, 'title'); $this->title->allowEmpty(false); $this->active = new \phpws2\Variable\Bool(true, 'active'); }
public function __construct() { parent::__construct(); $this->university = new \phpws2\Variable\CanopyString(null, 'university'); $this->university->allowEmpty(false); $this->university->setLimit(100); $this->mascot = new \phpws2\Variable\CanopyString(null, 'mascot'); $this->mascot->allowEmpty(false); $this->mascot->setLimit(100); $this->active = new \phpws2\Variable\Bool(true, 'active'); $this->image = new \phpws2\Variable\File(null, 'image'); $this->image->allowNull(true); }