Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class CustomValidator extends RequiredFields
- {
- public function php($data)
- {
- if ($data['Type'] == 'Video') {
- $this->addRequiredField('VideoImage');
- }
- return parent::php($data);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement