summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6bb1909)
raw | patch | inline | side by side (parent: 6bb1909)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Mar 2010 08:10:58 +0000 (08:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Mar 2010 08:10:58 +0000 (08:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16363 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_filterEditorEntry.inc | patch | blob | history |
diff --git a/gosa-core/include/class_filterEditorEntry.inc b/gosa-core/include/class_filterEditorEntry.inc
index dce7cdebfec4dd47d23d1a076c226a1cc0c9f5f6..e1ca3012f0b4b84ce3952b804304524a7f698743 100644 (file)
class filterEditEntry extends plugin
{
+ // The original entry else array(), allows us to perform existence checks.
public $entry = array();
+
+ // The values
public $name = "";
public $description = "";
public $selectedCategories = array();
public $share = FALSE;
public $filter = "(objectClass=*)";
+ // The list of all categories mangaged by the current filter object.
+ // Used in the grop-down box.
public $availableCategories = array();
public $orig_name = "";
+
+ /*! \brief Instantiate the filter editing dialog.
+ * Parses the filter info into editable data.
+ */
function __construct($entry, $categories)
{
$this->availableCategories = $categories;
$this->entry = $entry;
$this->name = $entry['name'];
$this->description = $entry['description'];
- $this->selectedCategories = $entry['categories'];
$this->filter = $entry['filter'];
+ $this->selectedCategories = $entry['categories'];
$this->share = in_array("share",$entry['flags']);
}
-
$this->orig_name = $this->name;
}
+
+ /*! \brief Retunrs the filters original name
+ * @param The original name of the filter (if none was given
+ * an empty string is returned)
+ */
function getOriginalName()
{
return($this->orig_name);
}
+
+ /*! \brief Retunrs the filters name.
+ * @param The name of the filter
+ */
function getCurrentName()
{
return($this->name);
}
+
+ /*! \brief Generates the <HTML> content, to edit the filter settings.
+ * @return String HTML form.
+ */
function execute()
{
plugin::execute();
return($smarty->fetch(get_template_path('filterEditorEntry.tpl', FALSE)));
}
+
+ /*! \brief Keep values entered in the input form of the dialog. (POST/GET)
+ */
function save_object()
{
if(isset($_POST['filterEditorEntry'])){
}
}
+
+ /*! \brief Transforms the entered values into a filter object (array) which is useable
+ * for the filterEditor overview dialog.
+ * @return Returns transformed filter data.
+ */
function save()
{
$ret= array();