Legend:
- Unmodified
- Added
- Removed
-
log.php
r8 r13 1 1 <?php 2 3 $LogActionType = array('Add' => 0, 'Edit' => 1, 'Delete' => 2); 2 4 3 5 class Log extends Module 4 6 { 5 var $Dependencies = array('User'); 7 var $Dependencies = array('User', 'DatabaseList'); 8 var $TableName = 'SystemLog'; 6 9 7 function NewRecord($Module, $Operation, $Value = '')10 function Add($List, $Item, $Action) 8 11 { 9 $ this->Database->insert('is`.`Log', array('Time' => 'NOW()', 'User' => $this->System->Modules['User']->User['Id'], 'Module' => $Module, 'Operation' => $Operation, 'Value' => $Value));10 //echo($this->Database->LastQuery);12 $Values = array('User' => $this->System->Modules['User']->User['Id'], 'List' => $List, 'Item' => $Item, 'Action' => $Action); 13 $this->System->Modules['DatabaseList']->AddItem($this->TableName, $Values); 11 14 } 12 15
Note:
See TracChangeset
for help on using the changeset viewer.