Public Member Functions | |
| __get ($name) | |
Static Public Member Functions | |
| static | register_type ($type= 'default', $module=null) |
| static | unregister_type ($type= 'default', $module=null) |
| static | log ($message, $severity= 'info', $type= 'default', $module=null, $data=null) |
| static | get_module ($module=null, $level=2) |
| static | get ($paramarray=array()) |
| static | trim () |
| static | purge () |
Protected Attributes | |
| $get_param_cache | |
Definition at line 12 of file eventlog.php.
| EventLog::__get | ( | $ | name | ) |
Returns properties of a EventLog object. This is the function that returns information about the set of log entries that was requested. This function should offer property names that are identical to properties of instances of the URL class. A call to EventLog::get() without parameters should return mostly the same property values as the global $url object for the request. The difference would occur when the data returned doesn't necessarily match the request, such as when several log entries are requested, but only one is available to return.
| string | The name of the property to return. |
Definition at line 28 of file eventlog.php.
| static EventLog::get | ( | $ | paramarray = array() |
) | [static] |
Returns a LogEntry or EventLog array based on supplied parameters. By default,fetch as many entries as pagination allows and order them in a descending fashion based on timestamp.
| array | $paramarry An associated array of parameters, or a querystring |
Build the pubdate If we've got the day, then get the date. If we've got the month, but no date, get the month. If we've only got the year, get the whole year.
Definition at line 123 of file eventlog.php.
Referenced by AdminLogsHandler::ajax_delete_logs(), and CoreDashModules::filter_dash_module_latest_log_activity().
| static EventLog::get_module | ( | $ | module = null, |
|
| $ | level = 2 | |||
| ) | [static] |
Get the module in which the logged code was executed
| integer | $level How many backtrace calls to go back through the trace |
Definition at line 105 of file eventlog.php.
Referenced by log().
| static EventLog::log | ( | $ | message, | |
| $ | severity = 'info', |
|||
| $ | type = 'default', |
|||
| $ | module = null, |
|||
| $ | data = null | |||
| ) | [static] |
Write an entry to the event log.
| string | $message The message | |
| string | $severity The severity | |
| string | $type The type | |
| string | $module The module | |
| mixed | $data The data |
Definition at line 80 of file eventlog.php.
Referenced by FileCache::__construct(), APCCache::__construct(), UserThemeHandler::act(), InstallHandler::act_begin_install(), Plugins::activate_plugin(), Themes::activate_theme(), UserGroup::add(), User::add_to_group(), User::authenticate(), Themes::cancel_preview(), ACL::create_token(), Update::cron(), Plugins::deactivate_plugin(), Vocabulary::delete(), UserGroup::delete(), Term::delete(), Post::delete(), Block::delete(), User::delete(), Comments::delete(), ACL::destroy_token(), UserThemeHandler::display(), Error::error_handler(), Error::exception_handler(), URL::get(), User::grant(), ACL::grant_group(), Vocabulary::insert(), UserGroup::insert(), Term::insert(), Post::insert(), Block::insert(), User::insert(), Plugins::list_active(), Plugins::load_info(), Vocabulary::merge(), Comments::moderate_these(), Pingback::pingback_all_links(), Themes::preview_theme(), Post::publish(), UserGroup::remove(), User::remove_from_group(), User::revoke(), ACL::revoke_group_token(), CronTab::run_cron(), Pingback::send_pingback(), UserGroup::set_member_list(), and UserGroup::update().
| static EventLog::register_type | ( | $ | type = 'default', |
|
| $ | module = null | |||
| ) | [static] |
Adds a logging type to the lookup table
| string | $type The type of the error | |
| string | $module The module of the error |
Definition at line 44 of file eventlog.php.
Referenced by Pingback::action_plugin_activation(), and LogEntry::type().
| static EventLog::unregister_type | ( | $ | type = 'default', |
|
| $ | module = null | |||
| ) | [static] |
Removes a logging type from the lookup table
| string | $type The type of the error | |
| string | $module The module of the error |
Definition at line 60 of file eventlog.php.
Referenced by Pingback::action_plugin_deactivation().
1.7.1