4 include_once
'Services/Object/classes/class.ilObjectAccess.php';
5 include_once
'Modules/Forum/classes/class.ilObjForum.php';
37 'permission'=>
'read',
38 'cmd' =>
'showThreads',
43 'permission'=>
'write',
45 'lang_var' =>
'settings' 62 $t_arr = explode(
'_', $a_target);
64 if ($t_arr[0] !=
'frm' || ((
int) $t_arr[1]) <= 0) {
68 if ($DIC->access()->checkAccess(
'read',
'', $t_arr[1])) {
84 $ilDB = $DIC->database();
87 'SELECT pos_thr_fk FROM frm_posts WHERE pos_pk = %s',
94 return $row[
'pos_thr_fk'];
106 $ilDB = $DIC->database();
108 require_once
'Modules/Forum/classes/class.ilFileDataForum.php';
111 'SELECT top_frm_fk, pos_pk FROM frm_posts p 112 JOIN frm_data d ON d.top_pk = p.pos_top_fk 113 WHERE top_frm_fk = %s',
121 $filesOfPost = $fileDataForum->getFilesOfPost();
122 foreach ($filesOfPost as $attachment) {
123 $size += $attachment[
'size'];
125 unset($fileDataForum);
140 include_once
'Services/Utilities/classes/class.ilStr.php';
143 $text = preg_replace(
'/\[(\/)?quote\]/',
'',
$text);
195 return self::$userInstanceCache[$usr_id];
static getCachedUserInstance($usr_id)
static _getThreadForPosting($a_pos_id)
Get thread id for posting.
static getLastPostByRefId($ref_id)
static subStr($a_str, $a_start, $a_length=null)
static userExists($a_usr_ids=array())
foreach($_POST as $key=> $value) $res
static _lookupDiskUsage($a_obj_id)
Returns the number of bytes used on the harddisk by the specified forum.
static $userInstanceCache
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Create styles array
The data for the language used.
This class handles all operations on files for the forum object.
static _checkGoto($a_target)
Check whether goto script will succeed Comment mjansen: Cannot make this static because parent method...
static lookupStatisticsByRefId($ref_id)
static getStatisticsByRefId($ref_id)
static preloadForumIdsByRefIds(array $ref_ids)
static prepareMessageForLists($text)
Prepare message for container view.
static lookupLastPostByRefId($ref_id)
static _preloadData($obj_ids, $ref_ids)
static _getCommands()
get commands this method returns an array of all possible commands/permission combinations example: $...