Changeset 1446 for branches/newtoken/wifidog/classes/NodeGroup.php
- Timestamp:
- 02/11/10 17:34:27 (2 years ago)
- Files:
-
- 1 modified
-
branches/newtoken/wifidog/classes/NodeGroup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newtoken/wifidog/classes/NodeGroup.php
r1436 r1446 170 170 } 171 171 172 HotspotGraphElement::createNewObject($node_group_id, 'NodeGroup' );172 HotspotGraphElement::createNewObject($node_group_id, 'NodeGroup', $network); 173 173 174 174 $object = self::getObject($node_group_id); … … 538 538 } 539 539 540 /** Add content to this node */541 /* public function addContent(Content $content)542 {543 $db = AbstractDb::getObject();544 $content_id = $db->escapeString($content->getId());545 $sql = "INSERT INTO node_has_content (node_id, content_id) VALUES ('$this->id','$content_id')";546 $db->execSqlUpdate($sql, false);547 exit;548 }*/549 550 /** Remove content from this node */551 /* public function removeContent(Content $content)552 {553 $db = AbstractDb::getObject();554 $content_id = $db->escapeString($content->getId());555 $sql = "DELETE FROM node_has_content WHERE node_id='$this->id' AND content_id='$content_id'";556 $db->execSqlUpdate($sql, false);557 }*/558 559 560 540 /** Reloads the object from the database. Should normally be called after a set operation */ 561 541 protected function refresh()
