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) {
65 if ($DIC->access()->checkAccess(
'read',
'', $t_arr[1])) {
81 $ilDB = $DIC->database();
84 'SELECT pos_thr_fk FROM frm_posts WHERE pos_pk = %s',
91 return $row[
'pos_thr_fk'];
103 $ilDB = $DIC->database();
106 'SELECT top_frm_fk, pos_pk FROM frm_posts p 107 JOIN frm_data d ON d.top_pk = p.pos_top_fk 108 WHERE top_frm_fk = %s',
116 $filesOfPost = $fileDataForum->getFilesOfPost();
117 foreach ($filesOfPost as $attachment) {
118 $size += $attachment[
'size'];
120 unset($fileDataForum);
137 $text = preg_replace(
'/\[(\/)?quote\]/',
'',
$text);
189 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: $...