PHP Class PHPExiftool\RDFParser

Author: Romain Neutron ([email protected])
Afficher le fichier Open project: romainneutron/PHPExiftool Class Usage Examples

Protected Properties

Свойство Type Description
$DOM
$DOMXpath
$XML
$registeredPrefixes

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

ParseEntities() public méthode

Parse a XML string and returns an ArrayCollection of FileEntity
public ParseEntities ( ) : ArrayCollection
Résultat Doctrine\Common\Collections\ArrayCollection

ParseMetadatas() public méthode

Parse an Entity associated DOM, returns the metadatas
public ParseMetadatas ( ) : MetadataBag
Résultat PHPExiftool\Driver\Metadata\MetadataBag

Query() public méthode

Returns the first result for a user defined query against the RDF
public Query ( string $query ) : PHPExiftool\Driver\Value\ValueInterface
$query string
Résultat PHPExiftool\Driver\Value\ValueInterface The value

__destruct() public méthode

public __destruct ( )

close() public méthode

Close the current opened XML file and reset internals
public close ( ) : RDFParser
Résultat RDFParser

getDom() protected méthode

Compute the DOMDocument from the XML
protected getDom ( ) : DOMDocument
Résultat DOMDocument

getDomXpath() protected méthode

Compute the DOMXpath from the DOMDocument
protected getDomXpath ( ) : DOMXpath
Résultat DOMXpath The DOMXpath object related to the XML

getNamespacesFromXml() protected static méthode

Extract all XML namespaces declared in a XML
protected static getNamespacesFromXml ( DOMDocument $dom ) : array
$dom DOMDocument
Résultat array The namespaces declared in XML

normalize() protected méthode

Normalize a tagname based on namespaces redirections
protected normalize ( string $tagname ) : string
$tagname string The tagname to normalize
Résultat string The normalized tagname

open() public méthode

Opens an XML file for parsing
public open ( string $XML ) : RDFParser
$XML string
Résultat RDFParser

readNodeValue() protected méthode

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
Résultat PHPExiftool\Driver\Value\ValueInterface The value extracted

Property Details

$DOM protected_oe property

protected $DOM

$DOMXpath protected_oe property

protected $DOMXpath

$XML protected_oe property

protected $XML

$registeredPrefixes protected_oe property

protected $registeredPrefixes