Class ilObjForumAccess.
More...
|
| _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 ... More...
|
|
| _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) More...
|
|
| _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id) |
| check condition More...
|
|
| _getCommands () |
| get commands More...
|
|
| _checkGoto ($a_target) |
| check whether goto script will succeed More...
|
|
| _preloadData ($a_obj_ids, $a_ref_ids) |
| Preload data. More...
|
|
◆ _getCommands()
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.
34 {
35 $commands = array
36 (
37 array(
38 'permission'=> 'read',
39 'cmd' => 'showThreads',
40 'lang_var' => 'show',
41 'default' => true
42 ),
43 array(
44 'permission'=> 'write',
45 'cmd' => 'edit',
46 'lang_var' => 'settings'
47 ),
48 );
49
50 return $commands;
51 }
Referenced by ilObjForumListGUI\init().
◆ _preloadData()
ilObjForumAccess::_preloadData |
( |
|
$obj_ids, |
|
|
|
$ref_ids |
|
) |
| |
- Parameters
-
array | $obj_ids | |
array | $ref_ids | |
Reimplemented from ilObjectAccess.
Definition at line 168 of file class.ilObjForumAccess.php.
169 {
170
171
172
173
174 ilObjForum::preloadForumIdsByRefIds((array)$ref_ids);
175 }
◆ getCachedUserInstance()
static ilObjForumAccess::getCachedUserInstance |
( |
|
$usr_id | ) |
|
|
static |
◆ getLastPostByRefId()
static ilObjForumAccess::getLastPostByRefId |
( |
|
$ref_id | ) |
|
|
static |
◆ getStatisticsByRefId()
static ilObjForumAccess::getStatisticsByRefId |
( |
|
$ref_id | ) |
|
|
static |
◆ prepareMessageForLists()
static ilObjForumAccess::prepareMessageForLists |
( |
|
$text | ) |
|
|
static |
Prepare message for container view.
- Parameters
-
- Returns
- string
Definition at line 150 of file class.ilObjForumAccess.php.
151 {
152 include_once 'Services/Utilities/classes/class.ilStr.php';
153
155 $text = preg_replace(
'/\[(\/)?quote\]/',
'',
$text);
157 {
159 }
160
162 }
static subStr($a_str, $a_start, $a_length=NULL)
References $text, ilStr\strLen(), and ilStr\subStr().
◆ $userInstanceCache
ilObjForumAccess::$userInstanceCache = array() |
|
staticprotected |
The documentation for this class was generated from the following file: