ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilObjForumAccess. More...
Public Member Functions | |
_getCommands () | |
get commands | |
_checkGoto ($a_target) | |
check whether goto script will succeed | |
_getThreadForPosting ($a_pos_id) | |
Get thread id for posting. | |
prepareMessageForLists ($text) | |
Prepare message for container view. | |
Public Member Functions inherited from ilObjectAccess | |
_checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") | |
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) | |
_checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0) | |
check condition | |
_preloadData ($a_obj_ids, $a_ref_ids) | |
Preload data. |
Static Public Member Functions | |
static | _lookupDiskUsage ($a_obj_id) |
Returns the number of bytes used on the harddisk by the specified forum. | |
static | getNumberOfPostings ($a_obj_id, $a_only_active=false) |
Get number of postings. | |
static | getNumberOfReadPostings ($a_obj_id, $a_only_active=false) |
Get number of read posts. | |
static | getNumberOfNewPostings ($a_obj_id, $a_only_active=false) |
Count number of new posts. | |
static | getLastPost ($a_obj_id, $a_only_active=false) |
Count number of new posts. | |
Static Public Member Functions inherited from ilObjectAccess | |
static | _isOffline ($a_obj_id) |
Type-specific implementation of general status, has to be overwritten. |
Class ilObjForumAccess.
Definition at line 18 of file class.ilObjForumAccess.php.
ilObjForumAccess::_checkGoto | ( | $a_target | ) |
check whether goto script will succeed
Reimplemented from ilObjectAccess.
Definition at line 48 of file class.ilObjForumAccess.php.
ilObjForumAccess::_getCommands | ( | ) |
get commands
this method returns an array of all possible commands/permission combinations
example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );
Reimplemented from ilObjectAccess.
Definition at line 33 of file class.ilObjForumAccess.php.
Referenced by ilObjForumListGUI\init().
ilObjForumAccess::_getThreadForPosting | ( | $a_pos_id | ) |
Get thread id for posting.
Definition at line 69 of file class.ilObjForumAccess.php.
References $ilDB, $res, and DB_FETCHMODE_ASSOC.
Referenced by ilPDNewsTableGUI\fillRow(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), and ilNewsForContextBlockGUI\showNews().
|
static |
Returns the number of bytes used on the harddisk by the specified forum.
$forum_id | id. |
Definition at line 86 of file class.ilObjForumAccess.php.
References $ilDB, $lng, $row, $size, DB_FETCHMODE_ASSOC, and ilUtil\getDataDir().
Referenced by ilObjForum\getDiskUsage().
|
static |
Count number of new posts.
int | $a_user_id |
Definition at line 225 of file class.ilObjForumAccess.php.
References $ilDB, $ilSetting, $res, and $row.
Referenced by ilObjForumListGUI\getProperties().
|
static |
Count number of new posts.
int | $a_user_id |
Definition at line 180 of file class.ilObjForumAccess.php.
References $ilDB, $ilSetting, $res, and DB_FETCHMODE_ASSOC.
Referenced by ilObjForumListGUI\getProperties().
|
static |
Get number of postings.
Definition at line 119 of file class.ilObjForumAccess.php.
Referenced by ilObjForumListGUI\getProperties().
|
static |
Get number of read posts.
Definition at line 149 of file class.ilObjForumAccess.php.
Referenced by ilObjForumListGUI\getProperties().
ilObjForumAccess::prepareMessageForLists | ( | $text | ) |
Prepare message for container view.
Definition at line 262 of file class.ilObjForumAccess.php.
References ilStr\strLen(), and ilStr\subStr().
Referenced by ilObjForumListGUI\getProperties().