123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- class ElggLogCache {
- protected $cache;
- public function __construct() {
- $this->cache = array();
- }
-
- public function insert($data) {
- $this->cache[] = $data;
- }
-
- public function insertDump($hook, $type, $result, $params) {
- $this->insert($params['msg']);
- return false;
- }
-
- public function get() {
- return $this->cache;
- }
- }
|