PHP Класс PHPExiftool\RDFParser

Автор: Romain Neutron ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$DOM
$DOMXpath
$XML
$registeredPrefixes

Открытые методы

Метод Описание
ParseEntities ( ) : ArrayCollection Parse a XML string and returns an ArrayCollection of FileEntity
ParseMetadatas ( ) : MetadataBag Parse an Entity associated DOM, returns the metadatas
Query ( string $query ) : PHPExiftool\Driver\Value\ValueInterface Returns the first result for a user defined query against the RDF
__destruct ( )
close ( ) : RDFParser Close the current opened XML file and reset internals
open ( string $XML ) : RDFParser Opens an XML file for parsing

Защищенные методы

Метод Описание
getDom ( ) : DOMDocument Compute the DOMDocument from the XML
getDomXpath ( ) : DOMXpath Compute the DOMXpath from the DOMDocument
getNamespacesFromXml ( DOMDocument $dom ) : array Extract all XML namespaces declared in a XML
normalize ( string $tagname ) : string Normalize a tagname based on namespaces redirections
readNodeValue ( DOMNode $node, PHPExiftool\Driver\TagInterface $tag = null ) : PHPExiftool\Driver\Value\ValueInterface Read the node value, decode it if needed

Описание методов

ParseEntities() публичный Метод

Parse a XML string and returns an ArrayCollection of FileEntity
public ParseEntities ( ) : ArrayCollection
Результат Doctrine\Common\Collections\ArrayCollection

ParseMetadatas() публичный Метод

Parse an Entity associated DOM, returns the metadatas
public ParseMetadatas ( ) : MetadataBag
Результат PHPExiftool\Driver\Metadata\MetadataBag

Query() публичный Метод

Returns the first result for a user defined query against the RDF
public Query ( string $query ) : PHPExiftool\Driver\Value\ValueInterface
$query string
Результат PHPExiftool\Driver\Value\ValueInterface The value

__destruct() публичный Метод

public __destruct ( )

close() публичный Метод

Close the current opened XML file and reset internals
public close ( ) : RDFParser
Результат RDFParser

getDom() защищенный Метод

Compute the DOMDocument from the XML
protected getDom ( ) : DOMDocument
Результат DOMDocument

getDomXpath() защищенный Метод

Compute the DOMXpath from the DOMDocument
protected getDomXpath ( ) : DOMXpath
Результат DOMXpath The DOMXpath object related to the XML

getNamespacesFromXml() защищенный статический Метод

Extract all XML namespaces declared in a XML
protected static getNamespacesFromXml ( DOMDocument $dom ) : array
$dom DOMDocument
Результат array The namespaces declared in XML

normalize() защищенный Метод

Normalize a tagname based on namespaces redirections
protected normalize ( string $tagname ) : string
$tagname string The tagname to normalize
Результат string The normalized tagname

open() публичный Метод

Opens an XML file for parsing
public open ( string $XML ) : RDFParser
$XML string
Результат RDFParser

readNodeValue() защищенный Метод

Read the node value, decode it if needed
protected readNodeValue ( DOMNode $node, PHPExiftool\Driver\TagInterface $tag = null ) : PHPExiftool\Driver\Value\ValueInterface
$node DOMNode The node to read
$tag PHPExiftool\Driver\TagInterface The tag associated
Результат PHPExiftool\Driver\Value\ValueInterface The value extracted

Описание свойств

$DOM защищенное свойство

protected $DOM

$DOMXpath защищенное свойство

protected $DOMXpath

$XML защищенное свойство

protected $XML

$registeredPrefixes защищенное свойство

protected $registeredPrefixes