Changeset 1446 for branches/newtoken/wifidog/classes/Network.php
- Timestamp:
- 02/11/10 17:34:27 (2 years ago)
- Files:
-
- 1 modified
-
branches/newtoken/wifidog/classes/Network.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newtoken/wifidog/classes/Network.php
r1436 r1446 56 56 require_once('classes/Security.php'); 57 57 require_once('classes/HotspotGraphElement.php'); 58 require_once('classes/TokenTemplate.php'); 59 58 60 59 61 /** … … 688 690 } 689 691 } 692 $params = array_map('trim',$params); 690 693 return call_user_func_array(array (new ReflectionClass($this->_row['network_authenticator_class']), 'newInstance'), $params); 691 694 … … 1694 1697 * Content management 1695 1698 */ 1696 /* $title = _("Network content");1697 $name = "network_".$this->_id."_content";1698 $data = Content::getLinkedContentUI($name, "network_has_content", "network_id", $this->_id, $display_page = "portal");1699 $html .= InterfaceElements::generateAdminSectionContainer("network_content", $title, $data);*/1700 1699 1701 1700 $html .= parent::getContentAdminUI(); … … 1928 1927 $html .= InterfaceElements::generateAdminSectionContainer("network_profile_templates", $title, $data); 1929 1928 1929 // Token templates 1930 $title = _("Network token templates"); 1931 $name = "network_".$this->_id."_token_templates"; 1932 $data = TokenTemplate::getTemplatesForNetworkUI($name, $this); 1933 $html .= InterfaceElements::generateAdminSectionContainer("network_token_templates", $title, $data); 1934 1930 1935 // objects hierarchy 1931 1936 $html .= parent::getGraphAdminUI($this); … … 1950 1955 // Content management 1951 1956 parent::processContentAdminUI(); 1952 /* $name = "network_".$this->_id."_content";1953 Content :: processLinkedContentUI($name, 'network_has_content', 'network_id', $this->_id);*/1954 1957 1955 1958 // name … … 2069 2072 ProfileTemplate :: processLinkedProfileTemplateUI($name, 'network_has_profile_templates', 'network_id', $this->_id); 2070 2073 2074 // Token templates 2075 $name = "network_".$this->_id."_token_templates"; 2076 TokenTemplate :: processTemplatesForNetworkUI($name, $this); 2077 2071 2078 parent::processGraphAdminUI($errMsg, $this); 2072 2079 if(!empty($errMsg)) { … … 2082 2089 } 2083 2090 } 2084 2085 /**2086 * Add network-wide content to this network2087 *2088 * @param object Content object2089 *2090 * @return void2091 *2092 * @access public2093 */2094 /* public function addContent(Content $content)2095 {2096 $db = AbstractDb::getObject();2097 2098 $content_id = $db->escapeString($content->getId());2099 $sql = "INSERT INTO network_has_content (network_id, content_id) VALUES ('$this->_id','$content_id')";2100 $db->execSqlUpdate($sql, false);2101 }*/2102 2103 /**2104 * Remove network-wide content from this network2105 *2106 * @param object Content object2107 *2108 * @return void2109 *2110 * @access public2111 */2112 /* public function removeContent(Content $content)2113 {2114 $db = AbstractDb::getObject();2115 2116 $content_id = $db->escapeString($content->getId());2117 $sql = "DELETE FROM network_has_content WHERE network_id='$this->_id' AND content_id='$content_id'";2118 $db->execSqlUpdate($sql, false);2119 }*/2120 2121 2091 2122 2092 /**
