示例#1
0
 function getValidator()
 {
     $validator = new FileRequiredFields(array('Url'));
     $validator->setRequiredFileFields(array("Thumbnail"));
     return $validator;
 }
示例#2
0
 function getValidator()
 {
     $validator = new FileRequiredFields(array('Link', 'SortOrder'));
     $validator->setRequiredFileFields(array("Image"));
     return $validator;
 }
示例#3
0
 function getValidator()
 {
     $validator = new FileRequiredFields(array('Name', 'Tagline', 'Link'));
     $validator->setRequiredFileFields(array("Thumbnail"));
     return $validator;
 }
示例#4
0
 function getValidator()
 {
     $validator = new FileRequiredFields(array('Name'));
     $validator->setRequiredFileFields(array("Attachment"));
     return $validator;
 }