Class ilObjForumAccess.
More...
Public Member Functions |
| _getCommands () |
| get commands 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"), ); Comment mjansen: Cannot make this static because parent method is not static ...
|
| _preloadData ($obj_ids, $ref_ids) |
| _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)
|
| _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0) |
| check condition
|
| _checkGoto ($a_target) |
| check whether goto script will succeed
|
Detailed Description
Member Function Documentation
ilObjForumAccess::_getCommands |
( |
| ) |
|
get commands 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"), ); Comment mjansen: Cannot make this static because parent method is not static ...
- Returns
- array
Reimplemented from ilObjectAccess.
Definition at line 33 of file class.ilObjForumAccess.php.
Referenced by ilObjForumListGUI\init().
{
$commands = array
(
array(
'permission'=> 'read',
'cmd' => 'showThreads',
'lang_var' => 'show',
'default' => true
),
array(
'permission'=> 'write',
'cmd' => 'edit',
'lang_var' => 'settings'
),
);
return $commands;
}
ilObjForumAccess::_preloadData |
( |
|
$obj_ids, |
|
|
|
$ref_ids |
|
) |
| |
static ilObjForumAccess::getCachedUserInstance |
( |
|
$usr_id | ) |
|
|
static |
static ilObjForumAccess::getLastPostByRefId |
( |
|
$ref_id | ) |
|
|
static |
static ilObjForumAccess::getStatisticsByRefId |
( |
|
$ref_id | ) |
|
|
static |
static ilObjForumAccess::prepareMessageForLists |
( |
|
$text | ) |
|
|
static |
Prepare message for container view.
- Parameters
-
- Returns
- string
Definition at line 150 of file class.ilObjForumAccess.php.
References ilStr\strLen(), and ilStr\subStr().
{
include_once 'Services/Utilities/classes/class.ilStr.php';
$text = strip_tags($text);
$text = preg_replace('/\[(\/)?quote\]/', '', $text);
{
}
return $text;
}
Field Documentation
ilObjForumAccess::$userInstanceCache = array() |
|
staticprotected |
The documentation for this class was generated from the following file: