/var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/SimplePie/src
NameSizeModeActions
Cache/-0755rm
Content/-0755rm
HTTP/-0755rm
Net/-0755rm
Parse/-0755rm
XML/-0755rm
Author.php19060644editdlrm
Cache.php32480644editdlrm
Caption.php30990644editdlrm
Category.php24720644editdlrm
Copyright.php17140644editdlrm
Credit.php21440644editdlrm
Enclosure.php321420644editdlrm
Exception.php3550644editdlrm
File.php193940644editdlrm
Gzdecode.php85120644editdlrm
IRI.php348070644editdlrm
Item.php1316210644editdlrm
Locator.php166990644editdlrm
Misc.php697970644editdlrm
Parser.php348680644editdlrm
Rating.php17940644editdlrm
Registry.php78960644editdlrm
RegistryAware.php4470644editdlrm
Restriction.php23690644editdlrm
Sanitize.php303530644editdlrm
SimplePie.php1280520644editdlrm
Source.php237380644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-includes/SimplePie/src/Cache.php (3248B)
> */ protected static $handlers = [ 'mysql' => Cache\MySQL::class, 'memcache' => Cache\Memcache::class, 'memcached' => Cache\Memcached::class, 'redis' => Cache\Redis::class, ]; /** * Don't call the constructor. Please. */ private function __construct() { } /** * Create a new SimplePie\Cache object * * @param string $location URL location (scheme is used to determine handler) * @param string $filename Unique identifier for cache object * @param Base::TYPE_FEED|Base::TYPE_IMAGE $extension 'spi' or 'spc' * @return Base Type of object depends on scheme of `$location` */ public static function get_handler(string $location, string $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); } /** * Create a new SimplePie\Cache object * * @deprecated since SimplePie 1.3.1, use {@see get_handler()} instead * @param string $location * @param string $filename * @param Base::TYPE_FEED|Base::TYPE_IMAGE $extension * @return Base */ public function create(string $location, string $filename, $extension) { trigger_error('Cache::create() has been replaced with Cache::get_handler() since SimplePie 1.3.1, use the registry system instead.', \E_USER_DEPRECATED); return self::get_handler($location, $filename, $extension); } /** * Register a handler * * @param string $type DSN type to register for * @param class-string $class Name of handler class. Must implement Base * @return void */ public static function register(string $type, $class) { self::$handlers[$type] = $class; } /** * Parse a URL into an array * * @param string $url * @return array */ public static function parse_URL(string $url) { $parsedUrl = parse_url($url); if ($parsedUrl === false) { return []; } $params = array_merge($parsedUrl, ['extras' => []]); if (isset($params['query'])) { parse_str($params['query'], $params['extras']); } return $params; } } class_alias('SimplePie\Cache', 'SimplePie_Cache');