| Total Complexity | 9 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Log extends Model |
||
| 9 | { |
||
| 10 | public function onLoad() { |
||
| 11 | $this->setTableName('tb_log') |
||
| 12 | ->setPrimaryKey() |
||
| 13 | ->setIp() |
||
| 14 | ->setSession(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function setPrev($prev) { |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getPrev() { |
||
| 24 | return json_decode($this->prev); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function setNext($next) { |
||
| 28 | $this->next = json_encode($next); |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getNext() { |
||
| 34 | return json_decode($this->next); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setFunction($name) { |
||
| 41 | } |
||
| 42 | |||
| 43 | public function setSession() { |
||
| 44 | $this->session = json_encode(@$_SESSION); |
||
| 45 | |||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function setName($name) { |
||
| 50 | $this->name = $name; |
||
| 51 | |||
| 52 | return $this; |
||
| 53 | } |
||
| 54 | |||
| 55 | public function setIp() { |
||
| 59 | } |
||
| 60 | |||
| 61 | |||
| 62 | } |
||
| 63 |