ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjCategoryReferenceAccess Class Reference
+ Inheritance diagram for ilObjCategoryReferenceAccess:
+ Collaboration diagram for ilObjCategoryReferenceAccess:

Public Member Functions

 _getCommands ($a_ref_id)
 get commands
- Public Member Functions inherited from ilContainerReferenceAccess
 _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)
- Public Member Functions inherited from ilObjectAccess
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0)
 check condition
 _getCommands ()
 get commands
 _checkGoto ($a_target)
 check whether goto script will succeed
 _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data.

Additional Inherited Members

- Static Public Member Functions inherited from ilContainerReferenceAccess
static _isAccessible ($a_ref_id)
 Check if target is accessible and not deleted.

Detailed Description

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 36 of file class.ilObjCategoryReferenceAccess.php.

Member Function Documentation

ilObjCategoryReferenceAccess::_getCommands (   $a_ref_id)

get commands

Depends on permissions

Parameters
int$a_ref_idReference id of course link

this method returns an array of all possible commands/permission combinations

example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );

Definition at line 54 of file class.ilObjCategoryReferenceAccess.php.

References ilObjectAccess\_getCommands().

{
global $ilAccess;
if($ilAccess->checkAccess('write','',$a_ref_id))
{
// Only local (reference specific commands)
$commands = array
(
array("permission" => "visible", "cmd" => "", "lang_var" => "show","default" => true),
array("permission" => "write", "cmd" => "editReference", "lang_var" => "edit")
);
}
else
{
include_once('./Modules/Category/classes/class.ilObjCategoryAccess.php');
}
return $commands;
}

+ Here is the call graph for this function:


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