CMS  Version 3.9
ErrorLog Class Reference

Inherits DataItem.

Public Member Functions

 User ()
 
 getUserFullName ()
 
 ErrorLog ()
 

Public Attributes

 $fields
 
 $relations = array("User" => "")
 

Detailed Description

Definition at line 8 of file error_log.inc.

Member Function Documentation

◆ ErrorLog()

ErrorLog::ErrorLog ( )

Definition at line 39 of file error_log.inc.

40  {
41  $this->primary_key = "error_log_id";
42  $this->table = "error_log";
43  $this->default_format = "{message}";
44 
45  // Patch in the user class, since this can be overridden by the application
46  $mgr = new UserManager();
47  $this->relations["User"] = $mgr->getUserClass();
48 
49  $this->DataItem(func_get_args());
50  }
Provides the interface to the user model for the application.

◆ getUserFullName()

ErrorLog::getUserFullName ( )

Definition at line 33 of file error_log.inc.

34  {
35  $u = $this->User();
36  if ($u) { return "$u->first_name $u->last_name"; }
37  }

◆ User()

ErrorLog::User ( )

Definition at line 26 of file error_log.inc.

27  {
28 
29  $mgr = new UserManager();
30  return $mgr->getUser($this->user_id);
31  }
$feedback user_id
Definition: save.inc:14

Member Data Documentation

◆ $fields

ErrorLog::$fields
Initial value:
= array("error_log_id" => Number,
"code" => Number,
"message" => HTML,
"file" => String,
"line" => Number,
"details" => HTML,
"user_id" => Number,
"uri" => String,
"referer" => String,
"session" => String,
"timestamp" => Timestamp)

Definition at line 12 of file error_log.inc.

◆ $relations

ErrorLog::$relations = array("User" => "")

Definition at line 24 of file error_log.inc.


The documentation for this class was generated from the following file: