@@ 216-231 (lines=16) @@ | ||
213 | //class_name::function |
|
214 | $key = get_class($arguments[0][0]) . '::' . $arguments[0][1] . '::' . serialize($args); |
|
215 | ||
216 | if (($cache = $this->fetch($key)) !== false) { |
|
217 | $this->set_default_group(); |
|
218 | return $cache; |
|
219 | } else { |
|
220 | ||
221 | $target = array_shift($arguments); |
|
222 | $result = call_user_func_array($target, $args); |
|
223 | ||
224 | $this->set_default_group(); |
|
225 | ||
226 | if (!$this->store($key, $result, false)) { |
|
227 | return false; |
|
228 | } |
|
229 | ||
230 | return $result; |
|
231 | } |
|
232 | } |
|
233 | ||
234 | public function Clean() { |
@@ 111-122 (lines=12) @@ | ||
108 | //class_name::metohd |
|
109 | $key = get_class($arguments[0][0]) . '::' . $arguments[0][1] . '::' . serialize($args); |
|
110 | ||
111 | if (($cache = $this->fetch($key)) !== false) { |
|
112 | return $cache; |
|
113 | } else { |
|
114 | $target = array_shift($arguments); |
|
115 | $result = call_user_func_array($target, $args); |
|
116 | ||
117 | if (!$this->store($key, $result, false)) { |
|
118 | return FALSE; |
|
119 | } |
|
120 | ||
121 | return $result; |
|
122 | } |
|
123 | } |
|
124 | ||
125 | /** |