Example #1
0
 /**
  * Get tree
  * @todo only for editor!
  */
 function action_api_editor_node_tree()
 {
     $id = 0 + $this->_params->id;
     if (!$id) {
         throw new controller_exception('Bad ID');
     }
     $tree = array_values($this->context->get_tree($id, tf_sat::TREE_ID));
     $this->renderer->set_ajax_answer($tree)->ajax_flush();
 }