From: hickert Date: Fri, 29 Aug 2008 09:05:04 +0000 (+0000) Subject: Updated opsi property edit. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1d7916bc7c48c01721daf1f7ce7890111fe7d60a;p=gosa.git Updated opsi property edit. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12309 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc index 47be77ba2..16d4b2127 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc @@ -1,11 +1,21 @@ 'value')) + @param String The host id if necessary + */ public function __construct($config,$product,$cfg = array() ,$hostId = "") { $this->config = $config; @@ -14,6 +24,11 @@ class opsiProperties extends plugin $this->hostId = $hostId; } + + /*! \brief Display html dialog which allows to + configure the properties + @return String HTML content + */ public function execute() { $smarty = get_smarty(); @@ -22,6 +37,9 @@ class opsiProperties extends plugin return($smarty->fetch(get_template_path("properties.tpl",TRUE,dirname(__FILE__)))); } + + /*! \brief Save the posted property updates + */ public function save_object() { foreach($this->cfg as $name => $value){ @@ -31,25 +49,48 @@ class opsiProperties extends plugin } } + + /*! \brief Sets the current config array. + */ + public function set_cfg($cfg) + { + $this->cfg = $cfg; + } + + + /*! \brief Returns the current product config + @return Array. + */ public function get_cfg() { return($this->cfg); } + + /*! \brief Returns the ID of the product. + @param String Product ID + */ public function get_product() { return($this->product); } + + /*! \brief Sets the current product ID, + The name is only used to remember the currently edited product. + */ + public function set_product($name) + { + $this->product = $name; + } + + + /*! \brief Retuns the hostId. + */ public function get_hostId() { return($this->hostId); } } - - - - - // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/gosa-plugins/opsi/admin/opsi/properties.tpl b/gosa-plugins/opsi/admin/opsi/properties.tpl index f38fe4b06..9ab2ceb62 100644 --- a/gosa-plugins/opsi/admin/opsi/properties.tpl +++ b/gosa-plugins/opsi/admin/opsi/properties.tpl @@ -21,7 +21,9 @@ {/if}

 

+{if $cfg_count != 0}   +{/if}