summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa59595)
raw | patch | inline | side by side (parent: aa59595)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 29 Aug 2008 09:05:04 +0000 (09:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 29 Aug 2008 09:05:04 +0000 (09:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12309 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc | patch | blob | history | |
gosa-plugins/opsi/admin/opsi/properties.tpl | patch | blob | history |
diff --git a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc
index 47be77ba212014161c8e45f55f70fef4184e2c05..16d4b21279e09da1a6ea56365f8153477e39b7da 100644 (file)
<?php
+
+/*! \brief Displays opsi product properties.
+ */
class opsiProperties extends plugin
{
private $product;
private $cfg;
private $hostId;
+
+ /*! \brief Initializes the class.
+ @param Object The gosa configuration object
+ @param String The product name.
+ @param Array The product config (e.g. aray('attr' => 'value'))
+ @param String The host id if necessary
+ */
public function __construct($config,$product,$cfg = array() ,$hostId = "")
{
$this->config = $config;
$this->hostId = $hostId;
}
+
+ /*! \brief Display html dialog which allows to
+ configure the properties
+ @return String HTML content
+ */
public function execute()
{
$smarty = get_smarty();
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){
}
}
+
+ /*! \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 f38fe4b06f4874eb42f0dcd3ffd01cc4e14c0b9c..9ab2ceb620a7f26f9079ad46b11d53c3053518d2 100644 (file)
{/if}
<p class="seperator"> </p>
<div style='width:100%; text-align: right; padding:3px;'>
+{if $cfg_count != 0}
<input type='submit' name='save_properties' value='{msgPool type='saveButton'}'>
+{/if}
<input type='submit' name='cancel_properties' value='{msgPool type='cancelButton'}'>
</div>