- Timestamp:
- 02/04/10 13:22:09 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/HotspotGraphElement.php
r1436 r1444 116 116 * @access public 117 117 */ 118 public static function createNewObject($element_id, $element_type )118 public static function createNewObject($element_id, $element_type, $parent_element = null) 119 119 { 120 120 $db = AbstractDb::getObject(); … … 130 130 } 131 131 $object = self::getObject($element_id, $element_type); 132 133 if (!is_null($parent_element)) { 134 if (method_exists($parent_element, 'getHgeId')) { 135 $parentid = $parent_element->getHgeId(); 136 $childid = $object->getHgeId(); 137 HotspotGraph::addRelation($parentid, $childid); 138 } 139 } 140 132 141 return $object; 133 142 }
