/** * Saves given node object with given label * * TODO Warning: As we do not check any properties set on the node here, user could manipulate lft and rgt values and hence crash the tree! * * @param integer $node * @param string $label */ public function saveNodeAction($node, $label = '') { $tree = $this->treeRepository->loadTreeByNamespace($this->treeNameSpace); $node = $tree->getNodeByUid($node); $node->setLabel($label); $this->nodeRepository->update($node); $this->returnDataAndShutDown('{ "status": true }'); }