summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8cd4f00)
raw | patch | inline | side by side (parent: 8cd4f00)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Feb 2008 09:40:21 +0000 (09:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Feb 2008 09:40:21 +0000 (09:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8811 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc
index 8c64e8dc54f9012376fa14b59ca4b9fae4fa255e..276bbfddb4e111ccbf6c4c36069bbaef933c5504 100644 (file)
/* Get required release informations */
if($this->enableReleaseManagement){
$this->Releases = $this->getReleases();
-# $this->FAIrelease = 0;
+ $this->FAIrelease = 0;
}
-# $this->curbase = $this->config->current['BASE'];
+ $this->curbase = $this->config->current['BASE'];
$this->reload();
}
+ /*! \brief Reload the list of applications for the currently selected release
+ */
function reload()
{
$ret = array();
-
-
+
+ /*! \brief generate a list of available releases
+ @return return an array with all available releases.
+ */
function getReleases()
{
/* Only display those releases that we are able to read */
$FAIstate = $attrs['FAIstate'][0];
}
- $ret[] = array("name" => $name,
+ $ret[$name] = array("name" => $name,
"FAIstate" => $FAIstate,
"dn" => $attrs['dn'],
"parts" => $parts,"suffix" => $bb.get_ou('applicationou'));
}
}
+ ksort($ret);
return($ret);
}
+ /*! \brief Load the menu structure from ldap and create a multi dimensional array
+ */
function _load_menu_structure()
{
$this->a_Structure = array();
return($display);
}
-
+
+ /*! \brief Returns all used folder names
+ @return Array All used folder names.
+ */
function _get_folder_names()
{
$data = $this->_get_entries_for_release($this->FAIrelease);
return($ret);
}
-
+
+ /*! \brief return all used applications
+ @return Array All used applications.
+ */
function _get_used_entry_name()
{
$data = $this->_get_entries_for_release($this->FAIrelease);
return($ret);
}
-
+
+ /*! \brief Returns all folder an entries for the selected release
+ @return Array Returns the complete menu structure for the given array.
+ */
function _get_entries_for_release($release,$cur = NULL)
{
$all = $this->_get_all_entries();
}
+ /*! \brief Save the currently edited entry */
function _save_entry_edit()
{
$all = $this->_get_all_entries();
}
+ /*! \brief prepare the entry with the given ID, to be edited.
+ */
function _edit_entry_edit($id)
{
$all = $this->_get_all_entries();
}
+ /*! \brief Create missing releases, if there is a release selected \
+ that is currently not part of the menu structure \
+ then create this entry
+ */
function _check_missing_release($release)
{
$release_info = $this->Releases[$release];
$this->reload();
}
-
+
+ /*! \brief Returns the UNIQID of the currently selected release
+ */
function _get_release_key($release,$add_if_missing = FALSE)
{
$release_info = $this->Releases[$release];
return(FALSE);
}
-
+
+ /*! \brief Add a new folder folder to the specified folder id
+ @param String $folder The folder id in where we want to add the new folder.
+ @param String $name The name of the new folder.
+ */
function _add_sub_folder($folder,$name)
{
$all = $this->_get_all_entries();
return(FALSE);
}
-
+
+ /*! \brief Add the application identified by $app_id to folder $folder_id
+ @param String folder_id The UNIQID of the folder where we want to add the new folder.
+ @param Integer app_id The ID of the application which should be added.
+ */
function _add_app_id($folder_id,$app_id)
{
$all = $this->_get_all_entries();