19 declare(strict_types=1);
35 'permission' =>
'read',
36 'cmd' =>
'showThreads',
41 'permission' =>
'write',
43 'lang_var' =>
'settings' 52 $t_arr = explode(
'_', $target);
54 if ($t_arr[0] !==
'frm' || ((
int) $t_arr[1]) <= 0) {
59 $DIC->access()->checkAccess(
'read',
'', (
int) $t_arr[1]) ||
60 $DIC->access()->checkAccess(
'visible',
'', (
int) $t_arr[1])
67 $ilDB = $DIC->database();
70 'SELECT pos_thr_fk FROM frm_posts WHERE pos_pk = %s',
77 return (
int) $row[
'pos_thr_fk'];
82 $text = str_replace(
'<br />',
' ', $text);
83 $text = strip_tags($text);
84 $text = preg_replace(
'/\[(\/)?quote\]/',
'', $text);
92 public static function _preloadData(array $obj_ids, array $ref_ids): void
119 self::$userInstanceCache[$usr_id] = $user;
123 return self::$userInstanceCache[$usr_id] ??
null;
static getLastPostByRefId(int $ref_id)
static getStatisticsByRefId(int $ref_id)
static prepareMessageForLists(string $text)
static subStr(string $a_str, int $a_start, ?int $a_length=null)
static _preloadData(array $obj_ids, array $ref_ids)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static strLen(string $a_string)
static userExists(array $a_usr_ids=[])
static lookupStatisticsByRefId(int $ref_id)
static getCachedUserInstance(int $usr_id)
static _getThreadForPosting(int $a_pos_id)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
static _checkGoto(string $target)
static array $userInstanceCache
static lookupLastPostByRefId(int $ref_id)
static preloadForumIdsByRefIds(array $ref_ids)