summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: feacc1b)
raw | patch | inline | side by side (parent: feacc1b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Jul 2010 09:17:21 +0000 (09:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Jul 2010 09:17:21 +0000 (09:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19147 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc | patch | blob | history |
diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc
index 6a81c9e8c2ac984f00d242c951c4ff07751103d8..4aa9b03141e114a464dc8400688495e434cd3d7d 100644 (file)
class dhcpNewSectionDialog extends plugin
{
- /* attribute list for save action */
- var $ignore_account = TRUE;
- var $attributes = array();
- var $objectclasses = array("whatever");
-
- /* Mapping array */
- var $types= array();
- var $classtype= "";
- var $sectionMap= array( "dhcpService" => array("dhcpSharedNetwork", "dhcpSubnet", "dhcpGroup", "dhcpHost", "dhcpClass", "dhcpTSigKey", "dhcpDnsZone"),
- "dhcpClass" => array("dhcpSubClass"),
- "dhcpSubClass" => array(),
- "dhcpHost" => array(),
- "dhcpGroup" => array("dhcpHost"),
- "dhcpPool" => array(),
- "dhcpSubnet" => array("dhcpPool", "dhcpGroup", "dhcpHost", "dhcpClass", "dhcpTSigKey", "dhcpDnsZone"),
- "dhcpSharedNetwork" => array("dhcpSubnet", "dhcpPool", "dhcpTsigKey", "dhcpDnsZone"),
- "dhcpTSigKey"=> array(),
- "dhcpDnsZone" => array());
-
-
-
- function dhcpNewSectionDialog($type)
- {
- $this->types= array( "dhcpService" => _("Global options"),
- "dhcpClass" => _("Class"),
- "dhcpSubClass" => _("Subclass"),
- "dhcpHost" => _("Host"),
- "dhcpGroup" => _("Group"),
- "dhcpPool" => _("Pool"),
- "dhcpSubnet" => _("Subnet"),
- "dhcpSharedNetwork" => _("Shared network"),
- "dhcpTSigKey" => _("DNS update key"),
- "dhcpDnsZone" => _("DNS update zone") );
-
- $this->classtype= $type;
- }
-
- function execute()
- {
- plugin::execute();
-
- /* Fill templating stuff */
- $smarty = get_smarty();
- $display= "";
-
- $sections= $this->sectionMap[$this->classtype];
- $t_sections= array();
- foreach ($sections as $section){
- $t_sections[$section]= $this->types[$section];
+ /* attribute list for save action */
+ var $ignore_account = TRUE;
+ var $attributes = array();
+ var $objectclasses = array("whatever");
+
+ /* Mapping array */
+ var $types= array();
+ var $classtype= "";
+ var $sectionMap= array( "dhcpService" => array("dhcpSharedNetwork", "dhcpSubnet", "dhcpGroup", "dhcpHost", "dhcpClass", "dhcpTSigKey", "dhcpDnsZone"),
+ "dhcpClass" => array("dhcpSubClass"),
+ "dhcpSubClass" => array(),
+ "dhcpHost" => array(),
+ "dhcpGroup" => array("dhcpHost"),
+ "dhcpPool" => array(),
+ "dhcpSubnet" => array("dhcpPool", "dhcpGroup", "dhcpHost", "dhcpClass", "dhcpTSigKey", "dhcpDnsZone"),
+ "dhcpSharedNetwork" => array("dhcpSubnet", "dhcpPool", "dhcpTsigKey", "dhcpDnsZone"),
+ "dhcpTSigKey"=> array(),
+ "dhcpDnsZone" => array());
+
+
+
+ function dhcpNewSectionDialog($type)
+ {
+ $this->types= array( "dhcpService" => _("Global options"),
+ "dhcpClass" => _("Class"),
+ "dhcpSubClass" => _("Subclass"),
+ "dhcpHost" => _("Host"),
+ "dhcpGroup" => _("Group"),
+ "dhcpPool" => _("Pool"),
+ "dhcpSubnet" => _("Subnet"),
+ "dhcpSharedNetwork" => _("Shared network"),
+ "dhcpTSigKey" => _("DNS update key"),
+ "dhcpDnsZone" => _("DNS update zone") );
+
+ $this->classtype= $type;
+ }
+
+ function execute()
+ {
+ plugin::execute();
+
+ /* Fill templating stuff */
+ $smarty = get_smarty();
+ $display= "";
+
+ $sections= $this->sectionMap[$this->classtype];
+ $t_sections= array();
+ foreach ($sections as $section){
+ $t_sections[$section]= $this->types[$section];
+ }
+ asort($t_sections);
+ $ui = get_userinfo();
+ $smarty->assign("sections", set_post($t_sections));
+ $display.= $smarty->fetch(get_template_path('dhcpNewSection.tpl', TRUE, dirname(__FILE__)));
+ return($display);
+ }
+
+ /* Get posts and set class name
+ */
+ function save_object()
+ {
+ }
+
+ /* Check given class name */
+ function check()
+ {
+ /* Call common method to give check the hook */
+ $message= "";
+
+ return ($message);
+ }
+
+
+ /* Return the class name */
+ function save()
+ {
}
- asort($t_sections);
- $ui = get_userinfo();
- $smarty->assign("sections", $t_sections);
- $display.= $smarty->fetch(get_template_path('dhcpNewSection.tpl', TRUE, dirname(__FILE__)));
- return($display);
- }
-
- /* Get posts and set class name
- */
- function save_object()
- {
- }
-
- /* Check given class name */
- function check()
- {
- /* Call common method to give check the hook */
- $message= "";
-
- return ($message);
- }
-
-
- /* Return the class name */
- function save()
- {
- }
}