Class CMS_log

Description

Class CMS_log

Keeps track of logs

Located in /automne/classes/common/log.php (line 29)

CMS_grandFather
   |
   --CMS_log
Class Constant Summary
Method Summary
 void destroy ()
 void getID ()
 string getLabel ()
 integer getLogAction ()
 integer getResource ()
 string getTextData ()
 cms_profile_user getUser ()
 void logMiscAction (integer $action, CMS_profile_user &$user, string $textData, [string $module = ''])
 void logResourceAction (integer $action, CMS_profile_user &$user, string $module, CMS_resourceStatus &$resourceStatusAfter, string $textData, CMS_resource $resource)
 void __construct ([ $id = 0], [ $user = false])
 void setDateTime (CMS_date $datetime)
 void setLabel (string $label)
 void setLogAction (integer $action)
 void setResource (integer $resource)
 void setTextData (string $textData)
 boolean writeToPersistence ()
 void _setModule (mixed $module)
 void _setUser (cms_profile_user $user)
Methods
destroy (line 611)

destroys the log from persistence (MySQL for now).

  • access: public
void destroy ()
getDateTime (line 470)

Get date time

  • access: public
CMS_date getDateTime ()
getID (line 259)
void getID ()
getLabel (line 521)

Get label

  • access: public
string getLabel ()
getLogAction (line 416)

Get log action

  • access: public
integer getLogAction ()
getModule (line 544)

Get Module

  • access: public
CMS_module getModule ()
getResource (line 575)

Get Resource Id

  • access: public
integer getResource ()
getResourceStatusAfter (line 443)

Get resource Status

  • access: public
CMS_resourceStatus getResourceStatusAfter ()
getTextData (line 498)

Get text Data

  • access: public
string getTextData ()
getUser (line 388)

Get log user

  • access: public
cms_profile_user getUser ()
logMiscAction (line 341)

Record log in database for miscelaneous resource

  • access: public
void logMiscAction (integer $action, CMS_profile_user &$user, string $textData, [string $module = ''])
  • string $module: : the module codename
  • integer $action: action
  • CMS_profile_user &$user: user
  • string $textData: textData
logResourceAction (line 275)

Record log in database for page or module

  • access: public
void logResourceAction (integer $action, CMS_profile_user &$user, string $module, CMS_resourceStatus &$resourceStatusAfter, string $textData, CMS_resource $resource)
Constructor __construct (line 195)

Constructor.

  • access: public
void __construct ([ $id = 0], [ $user = false])
  • $id
  • $user
setDateTime (line 482)

Set date time

  • access: public
void setDateTime (CMS_date $datetime)
setLabel (line 533)

Set label

  • access: public
void setLabel (string $label)
  • string $label
setLogAction (line 428)

Set log action

  • access: public
void setLogAction (integer $action)
  • integer $action
setResource (line 592)

Set ResourceId

  • access: public
void setResource (integer $resource)
  • integer $resource
setTextData (line 510)

Set text Data

  • access: public
void setTextData (string $textData)
  • string $textData
writeToPersistence (line 634)

Write to persistence

  • return: true on success, false on failure
  • access: public
boolean writeToPersistence ()
_setModule (line 560)

Set ModuleId

  • access: public
void _setModule (mixed $module)
  • mixed $module: string or CMS_module $module The module codename
_setResourceStatusAfter (line 454)

Set resource status

  • access: private
CMS_resourceStatus _setResourceStatusAfter ( $resourceStatus)
  • $resourceStatus
_setUser (line 400)

Set log user

  • access: private
void _setUser (cms_profile_user $user)
  • cms_profile_user $user

Inherited Methods

Inherited From CMS_grandFather

 CMS_grandFather::autoload()
 CMS_grandFather::hasError()
 CMS_grandFather::log()
 CMS_grandFather::PHPErrorHandler()
 CMS_grandFather::raiseError()
 CMS_grandFather::setDebug()
 CMS_grandFather::setLog()
 CMS_grandFather::_raiseError()
 CMS_grandFather::__call()
Class Constants
LOG_ACTION_AUTO_LOGIN = 31 (line 69)
LOG_ACTION_DISCONNECT = 35 (line 71)
LOG_ACTION_LOGIN = 33 (line 70)
LOG_ACTION_PROFILE_GROUP_DELETE = 13 (line 55)
LOG_ACTION_PROFILE_GROUP_EDIT = 12 (line 54)
LOG_ACTION_PROFILE_USER_DELETE = 15 (line 57)
LOG_ACTION_PROFILE_USER_EDIT = 14 (line 56)
LOG_ACTION_RESOURCE_ARCHIVE = 5 (line 40)
LOG_ACTION_RESOURCE_CANCEL_EDITIONS = 7 (line 42)
LOG_ACTION_RESOURCE_DELETE = 3 (line 38)
LOG_ACTION_RESOURCE_DELETE_DRAFT = 26 (line 46)
LOG_ACTION_RESOURCE_DIRECT_VALIDATION = 34 (line 48)
LOG_ACTION_RESOURCE_EDIT_BASEDATA = 1 (line 34)

Log actions

LOG_ACTION_RESOURCE_EDIT_CONTENT = 2 (line 35)
LOG_ACTION_RESOURCE_EDIT_DRAFT = 25 (line 45)
LOG_ACTION_RESOURCE_EDIT_MOVE = 32 (line 37)
LOG_ACTION_RESOURCE_EDIT_SIBLINGSORDER = 16 (line 36)
LOG_ACTION_RESOURCE_START_DRAFT = 30 (line 44)
LOG_ACTION_RESOURCE_SUBMIT_DRAFT = 27 (line 47)
LOG_ACTION_RESOURCE_UNARCHIVE = 6 (line 41)
LOG_ACTION_RESOURCE_UNDELETE = 4 (line 39)
LOG_ACTION_RESOURCE_VALIDATE_EDITION = 8 (line 43)
LOG_ACTION_SEND_EMAIL = 28 (line 67)
LOG_ACTION_TEMPLATE_DELETE = 22 (line 61)
LOG_ACTION_TEMPLATE_DELETE_FILE = 24 (line 64)
LOG_ACTION_TEMPLATE_DELETE_ROW = 23 (line 62)
LOG_ACTION_TEMPLATE_EDIT = 20 (line 59)
LOG_ACTION_TEMPLATE_EDIT_FILE = 29 (line 65)
LOG_ACTION_TEMPLATE_EDIT_ROW = 21 (line 60)
LOG_ACTION_WEBSITE_ADD = 9 (line 50)
LOG_ACTION_WEBSITE_DELETE = 11 (line 52)
LOG_ACTION_WEBSITE_EDIT = 10 (line 51)
MESSAGE_LOG_ACTION_AUTO_LOGIN = 1572 (line 111)
MESSAGE_LOG_ACTION_DISCONNECT = 1739 (line 113)
MESSAGE_LOG_ACTION_LOGIN = 1571 (line 112)
MESSAGE_LOG_ACTION_PROFILE_GROUP_DELETE = 883 (line 97)
MESSAGE_LOG_ACTION_PROFILE_GROUP_EDIT = 882 (line 96)
MESSAGE_LOG_ACTION_PROFILE_USER_DELETE = 885 (line 99)
MESSAGE_LOG_ACTION_PROFILE_USER_EDIT = 884 (line 98)
MESSAGE_LOG_ACTION_RESOURCE_ARCHIVE = 875 (line 82)
MESSAGE_LOG_ACTION_RESOURCE_CANCEL_EDITIONS = 877 (line 84)
MESSAGE_LOG_ACTION_RESOURCE_DELETE = 873 (line 80)
MESSAGE_LOG_ACTION_RESOURCE_DELETE_DRAFT = 1429 (line 88)
MESSAGE_LOG_ACTION_RESOURCE_DIRECT_VALIDATION = 1592 (line 90)
MESSAGE_LOG_ACTION_RESOURCE_EDIT_BASEDATA = 871 (line 76)

Log actions messages

MESSAGE_LOG_ACTION_RESOURCE_EDIT_CONTENT = 872 (line 77)
MESSAGE_LOG_ACTION_RESOURCE_EDIT_DRAFT = 1428 (line 87)
MESSAGE_LOG_ACTION_RESOURCE_EDIT_MOVE = 593 (line 79)
MESSAGE_LOG_ACTION_RESOURCE_EDIT_SIBLINGSORDER = 911 (line 78)
MESSAGE_LOG_ACTION_RESOURCE_START_DRAFT = 1568 (line 86)
MESSAGE_LOG_ACTION_RESOURCE_SUBMIT_DRAFT = 1430 (line 89)
MESSAGE_LOG_ACTION_RESOURCE_UNARCHIVE = 876 (line 83)
MESSAGE_LOG_ACTION_RESOURCE_UNDELETE = 874 (line 81)
MESSAGE_LOG_ACTION_RESOURCE_VALIDATE_EDITION = 878 (line 85)
MESSAGE_LOG_ACTION_SEND_EMAIL = 573 (line 109)
MESSAGE_LOG_ACTION_TEMPLATE_DELETE = 892 (line 103)
MESSAGE_LOG_ACTION_TEMPLATE_DELETE_FILE = 638 (line 107)
MESSAGE_LOG_ACTION_TEMPLATE_DELETE_ROW = 893 (line 104)
MESSAGE_LOG_ACTION_TEMPLATE_EDIT = 890 (line 101)
MESSAGE_LOG_ACTION_TEMPLATE_EDIT_FILE = 1110 (line 106)
MESSAGE_LOG_ACTION_TEMPLATE_EDIT_ROW = 891 (line 102)
MESSAGE_LOG_ACTION_WEBSITE_ADD = 879 (line 92)
MESSAGE_LOG_ACTION_WEBSITE_DELETE = 881 (line 94)
MESSAGE_LOG_ACTION_WEBSITE_EDIT = 880 (line 93)

Inherited Constants

Inherited from CMS_grandFather

CMS_grandFather::ERROR_LOG
CMS_grandFather::SYSTEM_LABEL

Documentation generated on Wed, 15 Feb 2012 15:31:52 +0100 by phpDocumentor 1.4.3