ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjItemGroupAccess Class Reference

Item group access class. More...

+ Inheritance diagram for ilObjItemGroupAccess:
+ Collaboration diagram for ilObjItemGroupAccess:

Public Member Functions

 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 
checks wether a user may invoke a command or not

(this method is called by ilAccessHandler::checkAccess)

 _checkGoto ($a_target)
 check whether goto script will succeed
- Public Member Functions inherited from ilObjectAccess
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0)
 check condition
 _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data.

Static Public Member Functions

 _getCommands ()
 get list of command/permission combinations
- Static Public Member Functions inherited from ilObjectAccess
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten.

Detailed Description

Item group access class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 15 of file class.ilObjItemGroupAccess.php.

Member Function Documentation

ilObjItemGroupAccess::_checkAccess (   $a_cmd,
  $a_permission,
  $a_ref_id,
  $a_obj_id,
  $a_user_id = "" 
)

checks wether a user may invoke a command or not

(this method is called by ilAccessHandler::checkAccess)

Parameters
string$a_cmdcommand (not permission!)
string$a_permissionpermission
int$a_ref_idreference id
int$a_obj_idobject id
int$a_user_iduser id (if not provided, current user is taken)
Returns
boolean true, if everything is ok

Reimplemented from ilObjectAccess.

Definition at line 49 of file class.ilObjItemGroupAccess.php.

References $ilUser, and $lng.

{
global $ilUser, $lng, $rbacsystem, $ilAccess;
$a_user_id = $a_user_id ? $a_user_id : $ilUser->getId();
return true;
}
ilObjItemGroupAccess::_checkGoto (   $a_target)

check whether goto script will succeed

Reimplemented from ilObjectAccess.

Definition at line 61 of file class.ilObjItemGroupAccess.php.

{
global $ilAccess;
$t_arr = explode("_", $a_target);
if ($t_arr[0] != "itgr" || ((int) $t_arr[1]) <= 0)
{
return false;
}
if($ilAccess->checkAccess("read", "", $t_arr[1]))
{
return true;
}
return false;
}
ilObjItemGroupAccess::_getCommands ( )
static

get list of command/permission combinations

public

Returns
array

Reimplemented from ilObjectAccess.

Definition at line 25 of file class.ilObjItemGroupAccess.php.

Referenced by ilObjItemGroupListGUI\init().

{
$commands = array
(
array("permission" => "read", "cmd" => "gotoParent", "lang_var" => "", "default" => true),
array("permission" => "write", "cmd" => "listMaterials", "lang_var" => "edit_content", "default" => false),
array("permission" => "write", "cmd" => "edit", "lang_var" => "settings", "default" => false)
);
return $commands;
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: