34 'permission' =>
'read',
35 'cmd' =>
'showThreads',
40 'permission' =>
'write',
42 'lang_var' =>
'settings' 59 $t_arr = explode(
'_', $a_target);
61 if ($t_arr[0] !=
'frm' || ((
int) $t_arr[1]) <= 0) {
66 $DIC->access()->checkAccess(
'read',
'', $t_arr[1]) ||
67 $DIC->access()->checkAccess(
'visible',
'', $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();
109 'SELECT top_frm_fk, pos_pk FROM frm_posts p 110 JOIN frm_data d ON d.top_pk = p.pos_top_fk 111 WHERE top_frm_fk = %s',
118 $fileDataForum =
new ilFileDataForum($row[
'top_frm_fk'], $row[
'pos_pk']);
119 $filesOfPost = $fileDataForum->getFilesOfPost();
120 foreach ($filesOfPost as $attachment) {
121 $size += $attachment[
'size'];
123 unset($fileDataForum);
138 $text = str_replace(
'<br />',
' ', $text);
139 $text = strip_tags($text);
140 $text = preg_replace(
'/\[(\/)?quote\]/',
'', $text);
192 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
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: $...