Example #1
0
 public function beforeSave()
 {
     /* проверка на кружева */
     if ($this->parent != $this->getProperty('parent', $this->object->get('parent'))) {
         if (!$this->MlmSystem->Tools->checkClientParent($this->object, $this->getProperty('parent'))) {
             $this->addFieldError('parent', $this->MlmSystem->lexicon('err_parent'));
         }
     }
     return parent::beforeSave();
 }
Example #2
0
 /** @inheritdoc} */
 public function formatClassName($class)
 {
     return $this->MlmSystem->lexicon('class_' . $class);
 }