Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | protected function processLogs($logs) |
||
27 | { |
||
28 | $command = $this->getDbConnection()->createCommand(); |
||
29 | foreach ($logs as $log) |
||
30 | { |
||
31 | $command->insert($this->logTableName, array( |
||
32 | 'level'=>$log[1], |
||
33 | 'category'=>$log[2], |
||
34 | 'logtime'=>date('Y-m-d H:i:s', (int)$log[3]), |
||
35 | 'message'=>$log[0], |
||
36 | 'source_address'=>$_SERVER['REMOTE_ADDR'], |
||
37 | )); |
||
41 | } |