Esempio n. 1
0
 /**
  * @return RequestValidator
  */
 public function createClassFormValidator(ShippingClass $class)
 {
     $validator = $this->getValidator("classForm_" . $class->isExistingRecord() ? $class->getID() : '', $this->request);
     $validator->addCheck("name", new IsNotEmptyCheck($this->translate("_error_the_name_should_not_be_empty")));
     return $validator;
 }