Ejemplo n.º 1
0
 /**
  * Обновляет значение листа
  */
 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);
 }
Ejemplo n.º 2
0
 /**
  * Обновляет имя и комментарий текущего нода
  */
 public function setupAttr($name, $comment)
 {
     SystemRegisterSample::update($this->parent, $this->nId, $name, '', $comment, SYSTEMREGISTER_BRANCH_TYPE);
     return $this;
 }