[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 982 lines (27 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
log:: (15 methods):
__construct()
set_is_admin()
get_is_admin()
set_log_table()
is_enabled()
disable()
enable()
add()
delete()
get_logs()
generate_sql_keyword()
get_topic_auth()
get_reportee_data()
get_log_count()
get_valid_offset()
__construct($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, $relative_admin_path, $php_ext, $log_table) X-Ref |
Constructor param: \phpbb\db\driver\driver_interface $db Database object param: \phpbb\user $user User object param: \phpbb\auth\auth $auth Auth object param: \phpbb\event\dispatcher_interface $phpbb_dispatcher Event dispatcher param: string $phpbb_root_path Root path param: string $relative_admin_path Relative admin root path param: string $php_ext PHP Extension param: string $log_table Name of the table we use to store our logs |
set_is_admin($is_in_admin) X-Ref |
Set is_in_admin in order to return administrative user profile links in get_logs() param: bool $is_in_admin Are we called from within the acp? return: null |
get_is_admin() X-Ref |
Returns the is_in_admin option return: bool |
set_log_table($log_table) X-Ref |
Set table name param: string $log_table Can overwrite the table to use for the logs return: null |
is_enabled($type = '') X-Ref |
{@inheritDoc} |
disable($type = '') X-Ref |
{@inheritDoc} |
enable($type = '') X-Ref |
{@inheritDoc} |
add($mode, $user_id, $log_ip, $log_operation, $log_time = false, $additional_data = array() X-Ref |
{@inheritDoc} |
delete($mode, $conditions = array() X-Ref |
{@inheritDoc} |
get_logs($mode, $count_logs = true, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $log_time = 0, $sort_by = 'l.log_time DESC', $keywords = '') X-Ref |
{@inheritDoc} |
generate_sql_keyword($keywords, $table_alias = 'l.', $statement_operator = 'AND') X-Ref |
Generates a sql condition for the specified keywords param: string $keywords The keywords the user specified to search for param: string $table_alias The alias of the logs' table ('l.' by default) param: string $statement_operator The operator used to prefix the statement ('AND' by default) return: string Returns the SQL condition searching for the keywords |
get_topic_auth(array $topic_ids) X-Ref |
Determine whether the user is allowed to read and/or moderate the forum of the topic param: array $topic_ids Array with the topic ids return: array Returns an array with two keys 'm_' and 'read_f' which are also an array of topic_id => forum_id sets when the permissions are given. Sample: |
get_reportee_data(array $reportee_ids) X-Ref |
Get the data for all reportee from the database param: array $reportee_ids Array with the user ids of the reportees return: array Returns an array with the reportee data |
get_log_count() X-Ref |
{@inheritDoc} |
get_valid_offset() X-Ref |
{@inheritDoc} |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |