public function validate() { $this->validator->setRule('required', $this->title, null, 'title | Title is required.'); $this->validator->setRule('required', $this->capacity, null, 'capacity | Capacity is required.'); $this->validator->setRule('gt', $this->capacity, 0, 'capacity | Capacity must be a positive number.'); parent::validate(); }
public function validate() { $this->validator->setRule('required', $this->content, null, 'content | Content is required.'); $this->validator->setRule('required', $this->recipientId, null, 'recipientId | RecipientId is required.'); $this->validator->setRule('minlength', $this->content, 3, 'content | Content must be at least 3 characters long.'); parent::validate(); }
public function validate() { $this->validator->setRule('required', $this->hallId, null, 'hallId | HallId is required.'); $this->validator->setRule('required', $this->lectureId, null, 'lectureId | LectureId is required.'); $this->validator->setRule('required', $this->conferenceId, null, 'conferenceId | ConferenceId is required.'); parent::validate(); }
public function validate() { $this->validator->setRule('required', $this->title, null, 'title | Title is required.'); $this->validator->setRule('required', $this->description, null, 'description | Description is required.'); $this->validator->setRule('required', $this->address, null, 'address | Address is required.'); $this->validator->setRule('minlength', $this->title, 3, 'title | Title must be at least 3 characters long.'); $this->validator->setRule('minlength', $this->description, 3, 'description | Description must be at least 3 characters long.'); parent::validate(); }
public function validate() { $this->validator->setRule('required', $this->title, null, 'title | Title is required.'); $this->validator->setRule('required', $this->startDate, null, 'startDate | Start Date is required.'); $this->validator->setRule('required', $this->endDate, null, 'endDate | End Date is required.'); $this->validator->setRule('date', $this->startDate, null, 'startDate | Start Date is not a valid date.'); $this->validator->setRule('date', $this->endDate, null, 'endDate | End Date is not a valid date.'); $this->validator->setRule('minlength', $this->title, 3, 'title | Title must be at least 3 characters long.'); $this->validator->setRule('gt', new \DateTime(), $this->startDate, 'startDate | Start Date must be a future date.'); $this->validator->setRule('gt', new \DateTime(), $this->endDate, 'endDate | End Date must be a future date.'); parent::validate(); }
public function validate() { $this->validator->setRule('required', $this->conferenceId, null, 'conferenceId | ConferenceId is required.'); $this->validator->setRule('required', $this->venueId, null, 'venueId | VenueId is required.'); parent::validate(); }
public function validate() { $this->validator->setRule('required', $this->keyword, null, 'keyword | Keyword is required.'); parent::validate(); }
public function validate() { parent::validate(); }
public function validate() { $this->validator->setRule('minlength', $this->username, 3, 'Username | Username must be at least 3 characters long.'); $this->validator->setRule('minlength', $this->fullname, 3, 'fullname | Full name must be at least 3 characters long.'); $this->validator->setRule('minlength', $this->telephone, 7, 'telephone | Telephone must be at least 3 characters long.'); $this->validator->setRule('email', $this->email, "Email | Invalid email."); $this->validator->setRule('minlength', $this->password, 3, 'Password | Password must be at least 3 characters long.'); $this->validator->setRule('minlength', $this->confirmPassword, 3, 'Confirm Password | Confirm Password must be at least 3 characters long.'); $this->validator->setRule('matches', $this->password, $this->confirmPassword, 'Confirm Password | Passwords do not match.'); parent::validate(); }
public function validate() { $this->validator->setRule('minlength', $this->newPassword, 3, 'newPassword | New password must be at least 3 characters long.'); $this->validator->setRule('matches', $this->newPassword, $this->confirmPassword, 'confirmPassword | Passwords do not match.'); parent::validate(); }