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(); }
/** @inheritdoc} */ public function formatClassName($class) { return $this->MlmSystem->lexicon('class_' . $class); }