equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Cache |
16 * @package Zend_Cache |
17 * @subpackage Zend_Cache_Backend |
17 * @subpackage Zend_Cache_Backend |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Backend.php 24989 2012-06-21 07:24:13Z mabe $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @package Zend_Cache |
25 * @package Zend_Cache |
26 * @subpackage Zend_Cache_Backend |
26 * @subpackage Zend_Cache_Backend |
27 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 * @license http://framework.zend.com/license/new-bsd New BSD License |
29 */ |
29 */ |
30 class Zend_Cache_Backend |
30 class Zend_Cache_Backend |
31 { |
31 { |
32 /** |
32 /** |
56 |
56 |
57 /** |
57 /** |
58 * Constructor |
58 * Constructor |
59 * |
59 * |
60 * @param array $options Associative array of options |
60 * @param array $options Associative array of options |
61 * @throws Zend_Cache_Exception |
|
62 * @return void |
|
63 */ |
61 */ |
64 public function __construct(array $options = array()) |
62 public function __construct(array $options = array()) |
65 { |
63 { |
66 while (list($name, $value) = each($options)) { |
64 foreach ($options as $name => $value) { |
67 $this->setOption($name, $value); |
65 $this->setOption($name, $value); |
68 } |
66 } |
69 } |
67 } |
70 |
68 |
71 /** |
69 /** |
267 |
265 |
268 /** |
266 /** |
269 * Log a message at the WARN (4) priority. |
267 * Log a message at the WARN (4) priority. |
270 * |
268 * |
271 * @param string $message |
269 * @param string $message |
272 * @throws Zend_Cache_Exception |
270 * @param int $priority |
273 * @return void |
271 * @return void |
274 */ |
272 */ |
275 protected function _log($message, $priority = 4) |
273 protected function _log($message, $priority = 4) |
276 { |
274 { |
277 if (!$this->_directives['logging']) { |
275 if (!$this->_directives['logging']) { |