Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /code/wp-includes/SimplePie
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: Registry.php
'SimplePie_Cache', 'Locator' => 'SimplePie_Locator', 'Parser' => 'SimplePie_Parser', 'File' => 'SimplePie_File', 'Sanitize' => 'SimplePie_Sanitize', 'Item' => 'SimplePie_Item', 'Author' => 'SimplePie_Author', 'Category' => 'SimplePie_Category', 'Enclosure' => 'SimplePie_Enclosure', 'Caption' => 'SimplePie_Caption', 'Copyright' => 'SimplePie_Copyright', 'Credit' => 'SimplePie_Credit', 'Rating' => 'SimplePie_Rating', 'Restriction' => 'SimplePie_Restriction', 'Content_Type_Sniffer' => 'SimplePie_Content_Type_Sniffer', 'Source' => 'SimplePie_Source', 'Misc' => 'SimplePie_Misc', 'XML_Declaration_Parser' => 'SimplePie_XML_Declaration_Parser', 'Parse_Date' => 'SimplePie_Parse_Date', ); /** * Class mapping * * @see register() * @var array */ protected $classes = array(); /** * Legacy classes * * @see register() * @var array */ protected $legacy = array(); /** * Constructor * * No-op */ public function __construct() { } /** * Register a class * * @param string $type See {@see $default} for names * @param string $class Class name, must subclass the corresponding default * @param bool $legacy Whether to enable legacy support for this class * @return bool Successfulness */ public function register($type, $class, $legacy = false) { if (!@is_subclass_of($class, $this->default[$type])) { return false; } $this->classes[$type] = $class; if ($legacy) { $this->legacy[] = $class; } return true; } /** * Get the class registered for a type * * Where possible, use {@see create()} or {@see call()} instead * * @param string $type * @return string|null */ public function get_class($type) { if (!empty($this->classes[$type])) { return $this->classes[$type]; } if (!empty($this->default[$type])) { return $this->default[$type]; } return null; } /** * Create a new instance of a given type * * @param string $type * @param array $parameters Parameters to pass to the constructor * @return object Instance of class */ public function &create($type, $parameters = array()) { $class = $this->get_class($type); if (in_array($class, $this->legacy)) { switch ($type) { case 'locator': // Legacy: file, timeout, useragent, file_class, max_checked_feeds, content_type_sniffer_class // Specified: file, timeout, useragent, max_checked_feeds $replacement = array($this->get_class('file'), $parameters[3], $this->get_class('content_type_sniffer')); array_splice($parameters, 3, 1, $replacement); break; } } if (!method_exists($class, '__construct')) { $instance = new $class; } else { $reflector = new ReflectionClass($class); $instance = $reflector->newInstanceArgs($parameters); } if (method_exists($instance, 'set_registry')) { $instance->set_registry($this); } return $instance; } /** * Call a static method for a type * * @param string $type * @param string $method * @param array $parameters * @return mixed */ public function &call($type, $method, $parameters = array()) { $class = $this->get_class($type); if (in_array($class, $this->legacy)) { switch ($type) { case 'Cache': // For backwards compatibility with old non-static // Cache::create() methods in PHP < 8.0. // No longer supported as of PHP 8.0. if ($method === 'get_handler') { $result = @call_user_func_array(array($class, 'create'), $parameters); return $result; } break; } } $result = call_user_func_array(array($class, $method), $parameters); return $result; } }
.
28 Items
Change directory
Remove directory
Rename directory
..
270 Items
Change directory
Remove directory
Rename directory
Author.php
3.43 KB
Edit
Delete
Copy
Move
Remame
Cache
7 Items
Change directory
Remove directory
Rename directory
Cache.php
4.25 KB
Edit
Delete
Copy
Move
Remame
Caption.php
4.3 KB
Edit
Delete
Copy
Move
Remame
Category.php
3.85 KB
Edit
Delete
Copy
Move
Remame
Content
1 Items
Change directory
Remove directory
Rename directory
Copyright.php
3.23 KB
Edit
Delete
Copy
Move
Remame
Core.php
2.18 KB
Edit
Delete
Copy
Move
Remame
Credit.php
3.56 KB
Edit
Delete
Copy
Move
Remame
Decode
1 Items
Change directory
Remove directory
Rename directory
Enclosure.php
26.34 KB
Edit
Delete
Copy
Move
Remame
Exception.php
2.1 KB
Edit
Delete
Copy
Move
Remame
File.php
9.92 KB
Edit
Delete
Copy
Move
Remame
HTTP
1 Items
Change directory
Remove directory
Rename directory
IRI.php
28.02 KB
Edit
Delete
Copy
Move
Remame
Item.php
96.82 KB
Edit
Delete
Copy
Move
Remame
Locator.php
12.89 KB
Edit
Delete
Copy
Move
Remame
Misc.php
51.26 KB
Edit
Delete
Copy
Move
Remame
Net
1 Items
Change directory
Remove directory
Rename directory
Parse
1 Items
Change directory
Remove directory
Rename directory
Parser.php
28.34 KB
Edit
Delete
Copy
Move
Remame
Rating.php
3.31 KB
Edit
Delete
Copy
Move
Remame
Registry.php
5.88 KB
Edit
Delete
Copy
Move
Remame
Restriction.php
3.63 KB
Edit
Delete
Copy
Move
Remame
Sanitize.php
17.61 KB
Edit
Delete
Copy
Move
Remame
Source.php
19.79 KB
Edit
Delete
Copy
Move
Remame
XML
1 Items
Change directory
Remove directory
Rename directory
gzdecode.php
8.31 KB
Edit
Delete
Copy
Move
Remame