Skip to content

Instantly share code, notes, and snippets.

Created November 20, 2014 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d0da94eec9091abe367c to your computer and use it in GitHub Desktop.
Save anonymous/d0da94eec9091abe367c to your computer and use it in GitHub Desktop.
function getValidator() {
$validator = ZenValidator::create();
$validator->addRequiredFields(array(
'EmployeeName',
'EmployeeJobTitle',
'EmploymentStartDate',
'PlaceOfWork',
'HourlyAmount',
'SalaryAmount'
));
$this->extend('updateValidator', $validator);
return $validator;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment