Changeset 1446 for branches/newtoken/wifidog/classes/Node.php
- Timestamp:
- 02/11/10 17:34:27 (2 years ago)
- Files:
-
- 1 modified
-
branches/newtoken/wifidog/classes/Node.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newtoken/wifidog/classes/Node.php
r1436 r1446 281 281 } 282 282 283 HotspotGraphElement::createNewObject($node_id, 'Node' );283 HotspotGraphElement::createNewObject($node_id, 'Node', $network); 284 284 285 285 $object = self::getObject($node_id); … … 1185 1185 1186 1186 //Node content 1187 /*$_html_content = array(); 1188 $_title = _("Node content"); 1189 $_data = Content::getLinkedContentUI("node_" . $node_id . "_content", "node_has_content", "node_id", $this->id, "portal"); 1190 $html .= InterfaceElements::generateAdminSectionContainer("node_content", $_title, $_data);*/ 1187 1191 1188 $html .= parent::getContentAdminUI(); 1192 1189 … … 1407 1404 // Content processing 1408 1405 parent::processContentAdminUI(); 1409 /*$name = "node_{$node_id}_content";1410 Content::processLinkedContentUI($name, 'node_has_content', 'node_id', $this->id);*/1411 1406 1412 1407 // Name … … 1589 1584 } 1590 1585 1591 /** Add content to this node */1592 /* public function addContent(Content $content)1593 {1594 $db = AbstractDb::getObject();1595 $content_id = $db->escapeString($content->getId());1596 $sql = "INSERT INTO node_has_content (node_id, content_id) VALUES ('$this->id','$content_id')";1597 $db->execSqlUpdate($sql, false);1598 exit;1599 }*/1600 1601 /** Remove content from this node */1602 /* public function removeContent(Content $content)1603 {1604 $db = AbstractDb::getObject();1605 $content_id = $db->escapeString($content->getId());1606 $sql = "DELETE FROM node_has_content WHERE node_id='$this->id' AND content_id='$content_id'";1607 $db->execSqlUpdate($sql, false);1608 }*/1609 1610 1586 /** 1611 1587 * The list of the 5 most recent users who have logged into this node in the past week,
