From 73acfcdcf0b5b02775e22dc933ba2ee81ddee7b1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 30 Sep 2010 10:05:24 +0000 Subject: [PATCH] Updated class device. -Added comments and cleaned up a bit. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19867 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/Config/class_DeviceConfig.inc | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc index 18e19b0aa..9f06dbd81 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc @@ -4,24 +4,40 @@ */ class DeviceConfig extends management { + + // Used to render the item-configuration dialog private $TemplateEngine = NULL; - private $allConfiguredItems = array(); - private $currentItem = array(); - private $navigationList = NULL; - public $pl_notify; - public $read_only; + // A list of all configured items for this device. + private $allConfiguredItems = array(); + // The currently active item + // Add add and remove action will be performed on this item + private $currentItem = array(); + + // A baseSelector which will be fed with a simulated + // department list. All entries will get a fake base + // which can then be used to fill the baseSelector widget. private $itemContainerSelector = NULL; + // The currently selected base within management list. private $base ; - public $is_account = FALSE; - public $ignore_account = FALSE; + // This array contains a list of all item-types we can add + // to the currently selected item (currentItem) + private $addableContainerItems = array(); + // Due to the fakt that we use a fake 'base/dn' for all items + // we've to map this 'base/dn' to the items 'id'. private $mappingBaseToID = array(); - private $addableContainerItems = array(); + // Some plugin related memebers which are not member of + // the management class. See class plugin. + public $is_account = FALSE; + public $ignore_account = FALSE; + public $pl_notify; + public $read_only; + /*! \brief Constructs the device configuration plugin * @param Config The GOsa configuration object. @@ -68,6 +84,7 @@ class DeviceConfig extends management $this->setCurrentItem($idRoot); $this->setSelectedListItemID($idRoot); + // Add some dummy entries for testing. $id = $this->addItem('PuppetModule','test1', array( 'dependency' => array('stulle','Wurst'), -- 2.30.2