From 4132dcd8c02451f9d56e7c876bf3b1d8849892ea Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 15 Sep 2010 13:33:48 +0000 Subject: [PATCH] Updated registered device classes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19687 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/devices/class_registeredDevice.inc | 27 +++++++++++++++++++ .../systems/goto/devices/registeredDevice.tpl | 13 +++++++++ 2 files changed, 40 insertions(+) create mode 100644 gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl diff --git a/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc b/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc index 2f670e849..0f82cd36b 100644 --- a/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc +++ b/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc @@ -4,7 +4,21 @@ class registeredDevice extends plugin { + public $objectclasses = array('top','device','registeredDevice'); + public $attributes = array("cn","serialNumber","seeAlso","owner","ou","o", + "l","description","manager","deviceUUID","deviceStatus"); + function execute() + { + plugin::execute(); + + $smarty = get_smarty(); + foreach($this->attributes as $attr){ + $smarty->assign($attr, $this->$attr); + } + return($smarty->fetch(get_template_path('goto/devices/registeredDevice.tpl', TRUE))); + + } static function plInfo() @@ -19,6 +33,19 @@ class registeredDevice extends plugin "plCategory" => array( "registeredDevice" => array( "description" => _("Registered device"), "objectClass" => "registeredDevice")), + "plProvidedAcls" => array( + "cn" => _("Name"), + "serialNumber" => _("Serial number"), + "seeAlso" => _("See also"), + "owner" => _("Owner"), + "ou" => _("Organizational unit"), + "o" => _("Organization"), + "l" => _("Location"), + "description" => _("Description"), + "manager" => _("Manager"), + "deviceUUID" => _("Uuid"), + "deviceStatus" => _("Stauts") + ) )); } } diff --git a/gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl b/gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl new file mode 100644 index 000000000..af1561f46 --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl @@ -0,0 +1,13 @@ +

{t}Registered device{/t}

+ +
+
+
+
+
+
+
+
+
+
+
-- 2.30.2