Inheritance diagram for LogEntry:
Collaboration diagram for LogEntry:Public Member Functions | |
| __construct ($paramarray=array()) | |
| insert () | |
| get_event_type () | |
| get_event_module () | |
| get_event_severity () | |
| delete () | |
| __get ($name) | |
| __set ($name, $value) | |
Static Public Member Functions | |
| static | default_fields () |
| static | list_logentry_types ($force=false) |
| static | list_severities () |
| static | list_modules ($refresh=false) |
| static | list_types ($refresh=false) |
| static | severity ($severity) |
| static | severity_name ($severity) |
| static | type ($module, $type) |
| static | get ($paramarray=array()) |
Represents a log entry
Definition at line 14 of file logentry.php.
| LogEntry::__construct | ( | $ | paramarray = array() |
) |
Constructor for the LogEntry class
| array | $paramarray an associative array of initial LogEntry field values |
Reimplemented from QueryRecord.
Definition at line 64 of file logentry.php.
| LogEntry::__get | ( | $ | name | ) |
Overrides QueryRecord __get to implement custom object properties
| string | Name of property to return |
Reimplemented from QueryRecord.
Definition at line 319 of file logentry.php.
| LogEntry::__set | ( | $ | name, | |
| $ | value | |||
| ) |
Overrides QueryRecord __set to implement custom object properties
| string | Name of property to return |
Reimplemented from QueryRecord.
Definition at line 357 of file logentry.php.
| static LogEntry::default_fields | ( | ) | [static] |
Return the defined database columns for an Event
Definition at line 45 of file logentry.php.
Referenced by EventLog::get().
| LogEntry::delete | ( | ) |
function delete Deletes this logentry
Reimplemented from QueryRecord.
Definition at line 301 of file logentry.php.
| static LogEntry::get | ( | $ | paramarray = array() |
) | [static] |
Return a single requested log entry.
$log= LogEntry::get( array( 'id' => 5 ) );
| array | $paramarray An associated array of parameters, or a querystring |
Definition at line 238 of file logentry.php.
| LogEntry::get_event_module | ( | ) |
Return the log entry's event module.
$log->module
Definition at line 279 of file logentry.php.
Referenced by __get().
| LogEntry::get_event_severity | ( | ) |
Return the log entry's event severity.
$log->severity
Definition at line 292 of file logentry.php.
Referenced by __get().
| LogEntry::get_event_type | ( | ) |
Return the log entry's event type.
$log->type
Definition at line 266 of file logentry.php.
Referenced by __get().
| LogEntry::insert | ( | ) |
Insert this LogEntry data into the database
Reimplemented from QueryRecord.
Definition at line 199 of file logentry.php.
| static LogEntry::list_logentry_types | ( | $ | force = false |
) | [static] |
Returns an associative array of LogEntry types
| bool | whether to force a refresh of the cached values |
Definition at line 93 of file logentry.php.
Referenced by list_modules(), list_types(), and type().
| static LogEntry::list_modules | ( | $ | refresh = false |
) | [static] |
Returns an array of LogEntry modules
| bool | Whether to refresh the cached values |
Definition at line 127 of file logentry.php.
| static LogEntry::list_severities | ( | ) | [static] |
Return an array of Severities
Definition at line 109 of file logentry.php.
Referenced by AdminOptionsHandler::post_options().
| static LogEntry::list_types | ( | $ | refresh = false |
) | [static] |
Returns an array of LogEntry types
| bool | Whether to refresh the cached values |
Definition at line 140 of file logentry.php.
| static LogEntry::severity | ( | $ | severity | ) | [static] |
Get the integer value for the given severity, or false.
| string | $severity The severity name |
false Definition at line 156 of file logentry.php.
Referenced by EventLog::get(), and insert().
| static LogEntry::severity_name | ( | $ | severity | ) | [static] |
Get the string representation of the severity numeric value.
| integer | $severity The severity index. |
Definition at line 170 of file logentry.php.
Referenced by EventLog::get(), and get_event_severity().
| static LogEntry::type | ( | $ | module, | |
| $ | type | |||
| ) | [static] |
Get the integer value for the given module/type, or false.
| string | $module the module | |
| string | $type the type |
false Definition at line 182 of file logentry.php.
Referenced by insert().
1.7.1