[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch




/phpbb/log/ -> log.php (summary)

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: 1001 lines (28 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

log:: (15 methods):

Class: log  - X-Ref

This class is used to add entries into the log table.

__construct($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, $relative_admin_path, $php_ext, $log_table)   X-Ref

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()

return: null
param: bool    $is_in_admin        Are we called from within the acp?

get_is_admin()   X-Ref
Returns the is_in_admin option

return: bool

set_log_table($log_table)   X-Ref
Set table name

return: null
param: string    $log_table        Can overwrite the table to use for the logs

is_enabled($type = '')   X-Ref

disable($type = '')   X-Ref

enable($type = '')   X-Ref

add($mode, $user_id, $log_ip, $log_operation, $log_time = false, $additional_data = array()   X-Ref

delete($mode, $conditions = array()   X-Ref

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

generate_sql_keyword($keywords, $table_alias = 'l.', $statement_operator = 'AND')   X-Ref
Generates a sql condition for the specified keywords

return: string        Returns the SQL condition searching for the 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)

get_topic_auth(array $topic_ids)   X-Ref
Determine whether the user is allowed to read and/or moderate the forum of the topic

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:
param: array    $topic_ids    Array with the topic ids

get_reportee_data(array $reportee_ids)   X-Ref
Get the data for all reportee from the database

return: array        Returns an array with the reportee data
param: array    $reportee_ids    Array with the user ids of the reportees

get_log_count()   X-Ref

get_valid_offset()   X-Ref

Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1