<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
return $this->context->get($key) !== false;
}
- public function get($key, $type, $callbac, $cbargs, $expire)
+ public function get($key, $type, $callback, $cbargs, $expire)
{
$value = $this->context->get($key);
if ($value === false) {
if (is_null($callback)) {
- throw new PlNotFoundInCacheException($key);
+ throw new PlNotFoundInCacheException($key, $type);
}
$value = call_user_func_array($callback, $cbargs);
$this->set($key, $type, $value, $expire);
}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
?>