????JFIF??x?x????'
Server IP : 104.21.30.238 / Your IP : 216.73.216.83 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/cwd/wp-content/plugins/wordpress-importer/php-toolkit/XML/ |
Upload File : |
<?php namespace WordPress\XML; /** * XML API: XMLElement class * * @package WordPress * @subpackage XML-API * @since 6.2.0 */ /** * Core class used by the XML tag processor as a data structure for the attribute token, * allowing to drastically improve performance. * * This class is for internal usage of the XMLProcessor class. * * @see XMLProcessor */ class XMLElement { /** * Local name. * * @var string */ public $local_name; /** * Namespace Prefix. * * @var string */ public $namespace_prefix; /** * Full XML namespace name. * * @var string */ public $namespace; /** * Namespaces in current element's scope. * * @var array<string, string> */ public $namespaces_in_scope; /** * Qualified name. * * @var string */ public $qualified_name; /** * Constructor. * * @param string $local_name Local name. * @param string $xml_namespace_prefix Namespace prefix. * @param string $xml_namespace Full XML namespace name. * @param array<string, string> $namespaces_in_scope Namespaces in current element's scope. */ public function __construct( $local_name, $xml_namespace_prefix, $xml_namespace, $namespaces_in_scope ) { $this->local_name = $local_name; $this->namespace_prefix = $xml_namespace_prefix; $this->namespace = $xml_namespace; $this->namespaces_in_scope = $namespaces_in_scope; $this->qualified_name = $xml_namespace_prefix ? $xml_namespace_prefix . ':' . $local_name : $local_name; } public function get_full_name() { return $this->namespace ? '{' . $this->namespace . '}' . $this->local_name : $this->local_name; } public function to_array() { return array( 'local_name' => $this->local_name, 'namespace_prefix' => $this->namespace_prefix, 'namespace' => $this->namespace, 'namespaces_in_scope' => $this->namespaces_in_scope, ); } public static function from_array( $array_value ) { return new self( $array_value['local_name'], $array_value['namespace_prefix'], $array_value['namespace'], $array_value['namespaces_in_scope'] ); } }