Esempio n. 1
0
 /**
  * To kwnow which target nodes we can chose when moving a node in the tree.
  * Return an array of the allowed nodes ids.
  */
 public static function tree_get_allowed()
 {
     parent::$json_data += array('allowed_nodes' => '');
     $tree = new ApmTreeData();
     $tree->load_last_tree();
     parent::$json_data['allowed_nodes'] = $tree->get_allowed_target_nodes($_POST['moving_node'], $_POST['edit_action']);
     parent::send_json();
 }