summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fdd0466)
raw | patch | inline | side by side (parent: fdd0466)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Nov 2010 13:45:09 +0000 (13:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Nov 2010 13:45:09 +0000 (13:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20408 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/generic/infoPage/class_infoPage.inc | patch | blob | history |
diff --git a/gosa-core/plugins/generic/infoPage/class_infoPage.inc b/gosa-core/plugins/generic/infoPage/class_infoPage.inc
index 9a63bda751f5e78a109fe4e04b6ac7a5ad50ad97..2745024c216696e2203b109804b2a093eabe3f53 100644 (file)
private $ui;
private $managers;
+
+ /*! \brief
+ */
function __construct($config)
{
$this->config = &$config;
$this->ui = get_userinfo();
plugin::plugin($config, $this->ui->dn);
-
// Detect managers for the current user.
$this->managers = $this->detectManagers();
$this->plugins = $this->getPluginList();
}
+
+ /*! \brief Returns a HTML string which respresent a list of plugins the user can access.
+ * Only accessible plugins will be rendered.
+ * @return String HTML content
+ */
function getPluginList()
{
$plist = session::get('plist');
return($str);
}
+
+ /*! \brief Check if we've access to a given class/plugin of GOsa.
+ * @param String The class name to check for.
+ * @return Boolean True on success else FALSE.
+ */
function checkAccess($class)
{
foreach($this->ui->ocMapping as $cat => $aclClasses){
}
return(FALSE);
}
-
+
+ /*! \brief Prepares an array which contains info about the users
+ * managers. The personal manager and the next
+ * manager defined for a department.
+ * @return Array An array with resolved manager dns.
+ */
function detectManagers()
{
}
+ /*! \brief Renders the plugin UI in HTML.
+ * @return String HTML content of the plugin.
+ */
function execute()
{
$smarty = get_smarty();
$personalInfoAllowed = FALSE;
foreach(array("uid","sn","givenName","street","l","o","ou","jpegPhoto","personalTitle",
- "academicTitle","dateOfBirth","homePostalAddress","homePhone","departmentNumber",
- "employeeNumber","employeeType") as $attr){
+ "academicTitle","dateOfBirth","homePostalAddress","homePhone","departmentNumber",
+ "employeeNumber","employeeType") as $attr){
$smarty->assign($attr, "");
if(preg_match("/r/", $this->ui->get_permissions($this->ui->dn,"users/user", $attr))
- && isset($this->attrs[$attr][0])){
+ && isset($this->attrs[$attr][0])){
$smarty->assign($attr,set_post( $this->attrs[$attr][0]));
$personalInfoAllowed = TRUE;
}