4include_once 
'Services/Object/classes/class.ilObjectAccess.php';
 
    5include_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])) {
 
   87            'SELECT pos_thr_fk FROM frm_posts WHERE pos_pk = %s',
 
   94        return $row[
'pos_thr_fk'];
 
  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];
 
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