first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
class stAllegroImageValidator extends sfValidator {
|
||||
|
||||
public function execute(&$value, &$error) {
|
||||
if (isset($value['selected']) && count($value['selected']) > 16) {
|
||||
$error = $this->getParameter('msg');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function initialize($context, $parameters = null) {
|
||||
parent::initialize($context);
|
||||
$this->getParameterHolder()->add($parameters);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user