Beispiel #1
0
 public function setClassItemCharge(ShippingClass $class, $charge)
 {
     $this->setValueByLang('perItemChargeClass', $class->getID(), $charge);
 }
Beispiel #2
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;
 }