메소드 | 설명 | |
---|---|---|
__construct ( array $paramarray = [] ) | Constructor for the LogEntry class | |
__get ( string $name ) : mixed | Overrides QueryRecord __get to implement custom object properties | |
__set ( string $name, mixed $value ) : mixed | Overrides QueryRecord __set to implement custom object properties | |
default_fields ( ) : array | Return the defined database columns for an Event | |
delete ( ) | Deletes this logentry | |
get ( array $paramarray = [] ) : object | Return a single requested log entry. | |
get_event_module ( ) : string | Return the log entry's event module. | |
get_event_severity ( ) : string | Return the log entry's event severity. | |
get_event_type ( ) : string | Return the log entry's event type. | |
insert ( ) | Insert this LogEntry data into the database | |
list_logentry_types ( boolean $force = false ) : array | Returns an associative array of LogEntry types | |
list_modules ( boolean $refresh = false ) : array | Returns an array of LogEntry modules | |
list_severities ( ) : array | Return an array of Severities | |
list_types ( boolean $refresh = false ) : array | Returns an array of LogEntry types | |
severity ( string $severity ) : mixed |
Get the integer value for the given severity, or false . |
|
severity_name ( integer $severity ) : string | Get the string representation of the severity numeric value. | |
type ( string $module, string $type ) : mixed |
Get the integer value for the given module/type, or false . |
메소드 | 설명 | |
---|---|---|
severities ( $translate = true ) | Defined event severities |
public __construct ( array $paramarray = [] ) | ||
$paramarray | array | an associative array of initial LogEntry field values |
public static default_fields ( ) : array | ||
리턴 | array | Array of columns in the LogEntry table |
$log= LogEntry::get( array( 'id' => 5 ) );
$log->module
public get_event_module ( ) : string | ||
리턴 | string | Human-readable event module |
$log->severity
public get_event_severity ( ) : string | ||
리턴 | string | Human-readable event severity |
$log->type
public get_event_type ( ) : string | ||
리턴 | string | Human-readable event type |
public static list_logentry_types ( boolean $force = false ) : array | ||
$force | boolean | whether to force a refresh of the cached values |
리턴 | array | An array of log entry type names => integer values |
public static list_modules ( boolean $refresh = false ) : array | ||
$refresh | boolean | Whether to refresh the cached values |
리턴 | array | An array of LogEntry module id => name pairs |
public static list_severities ( ) : array | ||
리턴 | array | An array of severity ID => name pairs |
public static list_types ( boolean $refresh = false ) : array | ||
$refresh | boolean | Whether to refresh the cached values |
리턴 | array | An array of LogEntry id => name pairs |
false
. public static severity_name ( integer $severity ) : string | ||
$severity | integer | The severity index. |
리턴 | string | The string name of the severity, or 'Unknown'. |