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])
 
   87            'SELECT pos_thr_fk FROM frm_posts WHERE pos_pk = %s',
 
   94        return $row[
'pos_thr_fk'];
 
  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];
 
An exception for terminatinating execution or to throw for unit testing.
This class handles all operations on files for the forum object.
static _getCommands()
get commands this method returns an array of all possible commands/permission combinations example: $...
static getLastPostByRefId($ref_id)
static getStatisticsByRefId($ref_id)
static prepareMessageForLists($text)
Prepare message for container view.
static _getThreadForPosting($a_pos_id)
Get thread id for posting.
static _lookupDiskUsage($a_obj_id)
Returns the number of bytes used on the harddisk by the specified forum.
static $userInstanceCache
static _preloadData($obj_ids, $ref_ids)
static getCachedUserInstance($usr_id)
static _checkGoto($a_target)
Check whether goto script will succeed Comment mjansen: Cannot make this static because parent method...
static preloadForumIdsByRefIds(array $ref_ids)
static lookupStatisticsByRefId($ref_id)
static lookupLastPostByRefId($ref_id)
static userExists($a_usr_ids=array())
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static subStr($a_str, $a_start, $a_length=null)
foreach($_POST as $key=> $value) $res