/** * Обновляет значение листа */ public function update() { if (empty($this->nId)) { throw new SystemRegisterException('Update failed! Attribute $id empty'); } SystemRegisterSample::update($this->parent, $this->nId, $this->szName, $this->szValue, $this->szComment, $this->szType); }
/** * Обновляет имя и комментарий текущего нода */ public function setupAttr($name, $comment) { SystemRegisterSample::update($this->parent, $this->nId, $name, '', $comment, SYSTEMREGISTER_BRANCH_TYPE); return $this; }