@@ -300,7 +300,7 @@ public function load($id, $doNotTestCacheValidity = false, $doNotUnserialize = f
300
300
}
301
301
$ id = $ this ->_id ($ id ); // cache id may need prefix
302
302
$ this ->_lastId = $ id ;
303
- self :: _validateIdOrTag ($ id );
303
+ $ this -> _validateIdOrTag ($ id );
304
304
305
305
$ this ->_log ("Zend_Cache_Core: load item ' {$ id }' " , 7 );
306
306
$ data = $ this ->_backend ->load ($ id , $ doNotTestCacheValidity );
@@ -327,7 +327,7 @@ public function test($id)
327
327
return false ;
328
328
}
329
329
$ id = $ this ->_id ($ id ); // cache id may need prefix
330
- self :: _validateIdOrTag ($ id );
330
+ $ this -> _validateIdOrTag ($ id );
331
331
$ this ->_lastId = $ id ;
332
332
333
333
$ this ->_log ("Zend_Cache_Core: test item ' {$ id }' " , 7 );
@@ -355,8 +355,8 @@ public function save($data, $id = null, $tags = array(), $specificLifetime = fal
355
355
} else {
356
356
$ id = $ this ->_id ($ id );
357
357
}
358
- self :: _validateIdOrTag ($ id );
359
- self :: _validateTagsArray ($ tags );
358
+ $ this -> _validateIdOrTag ($ id );
359
+ $ this -> _validateTagsArray ($ tags );
360
360
if ($ this ->_options ['automatic_serialization ' ]) {
361
361
// we need to serialize datas before storing them
362
362
$ data = serialize ($ data );
@@ -424,7 +424,7 @@ public function remove($id)
424
424
return true ;
425
425
}
426
426
$ id = $ this ->_id ($ id ); // cache id may need prefix
427
- self :: _validateIdOrTag ($ id );
427
+ $ this -> _validateIdOrTag ($ id );
428
428
429
429
$ this ->_log ("Zend_Cache_Core: remove item ' {$ id }' " , 7 );
430
430
return $ this ->_backend ->remove ($ id );
@@ -460,7 +460,7 @@ public function clean($mode = 'all', $tags = array())
460
460
Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG ))) {
461
461
Zend_Cache::throwException ('Invalid cleaning mode ' );
462
462
}
463
- self :: _validateTagsArray ($ tags );
463
+ $ this -> _validateTagsArray ($ tags );
464
464
465
465
return $ this ->_backend ->clean ($ mode , $ tags );
466
466
}
@@ -667,7 +667,7 @@ public function touch($id, $extraLifetime)
667
667
* @throws Zend_Cache_Exception
668
668
* @return void
669
669
*/
670
- protected static function _validateIdOrTag ($ string )
670
+ protected function _validateIdOrTag ($ string )
671
671
{
672
672
if (!is_string ($ string )) {
673
673
Zend_Cache::throwException ('Invalid id or tag : must be a string ' );
@@ -689,13 +689,13 @@ protected static function _validateIdOrTag($string)
689
689
* @throws Zend_Cache_Exception
690
690
* @return void
691
691
*/
692
- protected static function _validateTagsArray ($ tags )
692
+ protected function _validateTagsArray ($ tags )
693
693
{
694
694
if (!is_array ($ tags )) {
695
695
Zend_Cache::throwException ('Invalid tags array : must be an array ' );
696
696
}
697
697
foreach ($ tags as $ tag ) {
698
- self :: _validateIdOrTag ($ tag );
698
+ $ this -> _validateIdOrTag ($ tag );
699
699
}
700
700
reset ($ tags );
701
701
}
0 commit comments