SimplePie_Cache::get_handler() public WP 1.0
Create a new SimplePie_Cache object
{} Это метод класса: SimplePie_Cache{}
Хуков нет.
Возвращает
SimplePie_Cache_Base
. Type of object depends on scheme of $location
Использование
$result = SimplePie_Cache::get_handler( $location, $filename, $extension );
- $location(строка) (обязательный)
- URL location (scheme is used to determine handler)
- $filename(строка) (обязательный)
- Unique identifier for cache object
- $extension(строка) (обязательный)
- 'spi' or 'spc'
Код SimplePie_Cache::get_handler() SimplePie Cache::get handler WP 5.7.1
public static function get_handler($location, $filename, $extension)
{
$type = explode(':', $location, 2);
$type = $type[0];
if (!empty(self::$handlers[$type]))
{
$class = self::$handlers[$type];
return new $class($location, $filename, $extension);
}
return new SimplePie_Cache_File($location, $filename, $extension);
}