Changeset 1446 for branches/newtoken/wifidog/classes/HotspotGraph.php
- Timestamp:
- 02/11/10 17:34:27 (2 years ago)
- Files:
-
- 1 modified
-
branches/newtoken/wifidog/classes/HotspotGraph.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/newtoken/wifidog/classes/HotspotGraph.php
r1436 r1446 56 56 { 57 57 58 /** 59 * Adds a relation to the hotspot graph 60 * @param parentId the id of the parent 61 * @param childId the id of the child 62 */ 63 public static function addRelation($parentId, $childId) { 64 $db = AbstractDb :: getObject(); 65 $parentIdStr = $db->escapeString($parentId); 66 $childIdStr = $db->escapeString($childId); 67 $sql = "INSERT INTO hotspot_graph (child_element_id, parent_element_id) VALUES ('{$childIdStr}', '{$parentIdStr}');"; 68 $db->execSqlUpdate($sql, false); 69 } 70 58 71 /** 59 72 * Gets recursively all parents of the given object
