/** * insert node */ public function insertNode($data) { $Node = new common_node(); //print_r($data); //return 1; if ($id = $Node->insert($data)) { return $id; } else { msg("Cannot insert node " . print_r($data, true), 'error'); return false; } }