summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8021f7a)
raw | patch | inline | side by side (parent: 8021f7a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 Apr 2008 07:20:53 +0000 (07:20 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 Apr 2008 07:20:53 +0000 (07:20 +0000) |
-Added comments.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10218 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10218 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_divListSudo.inc | patch | blob | history | |
gosa-plugins/sudo/admin/sudo/class_sudoOption.inc | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc b/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc
index d13d554e0537285b67203bc15d66a88e42a73384..8e90e6b5681ef96d9dc2707290e29ae3deeff56d 100644 (file)
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+/*! \brief The sudo management class.
+ This class lists all configured sudo roles.
+ */
class divListSudo extends MultiSelectWindow
{
var $parent ;
var $ui ;
+
+ /*! \brief Initialize this class
+ @param Object $config The GOsa configuration object.
+ @param Object $parent The parent class.
+ */
function divListSudo (&$config, &$parent)
{
MultiSelectWindow::MultiSelectWindow($config, "sudo", "sudo");
}
+ /*! \brief Generate the list header.
+ */
function GenHeader()
{
/* Prepare departments,
}
+ /*! \brief Prepare the plguin to list a set of objects
+ */
function execute()
{
$this->ClearElementsList();
}
+ /*! \brief Create a list of all objects that should be displayed
+ @param Array $list The list of sudo roles, passed from the sudoManagement class.
+ */
function setEntries($list)
{
/* Prepare links */
$this->set_List_Bottom_Info($str);
}
+
+ /*! \brief Save this plugin. In this case nothing will be saved
+ */
function Save()
{
MultiSelectWindow :: Save();
}
+ /*! \brief Save all relevant HTML inputs for this plugin.
+ */
function save_object()
{
/* Save automatic created POSTs like regex, checkboxes */
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc b/gosa-plugins/sudo/admin/sudo/class_sudoOption.inc
index eb2cd1e800e5c1f187284cdb74867efc8204dab7..6b12f81305b3c3b6a3e8f5dd80f3c89bdb6129a9 100644 (file)
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+/*! \brief Sudo option class.
+ Allows setting flags/options for a sudo role.
+ */
class sudoOption extends plugin
{
/* Group attributes */
var $sudoOption = array();
-
var $attributes = array("sudoOption");
var $is_account = TRUE;
-
var $options = array();
+ /*! \brief Initializes this class
+ @param Object $config The GOsa configuration object.
+ @param String $dn The object dn.
+ */
function sudoOption(&$config, $dn= NULL)
{
plugin::plugin ($config, $dn);
}
}
+
+ /*! \brief Create HTML output for this plugin
+ @return String HTML output for this plugin.
+ */
function execute()
{
/* Call parent execute */
return($smarty->fetch(get_template_path('options.tpl', TRUE)));
}
+
+ /*! \brief Removes this plugin
+ */
function remove_from_parent()
{
}
- /* Save data to object */
+
+ /*! \brief Saves all relevant HTML post values for this plugin
+ */
function save_object()
{
plugin::save_object();
}
}
- /* Save to LDAP */
+
+ /*! \brief Save changes to ldap
+ */
function save()
{
plugin::save();
$ldap->modify($this->attrs);;
}
+
+ /*! \brief Checks input validity
+ */
function check()
{
$message = plugin::check();