PHP Class PhpOffice\PhpPresentation\Tests\XmlDocument

Afficher le fichier Open project: phpoffice/phppowerpoint

Méthodes publiques

Méthode Description
__construct ( string $path ) Create new instance
attributeElementExists ( string $path, string $attribute, string $file = 'word/document.xml' ) : string Get element attribute
elementCount ( string $path, string $file ) : string Check if element exists
elementExists ( string $path, string $file = 'word/document.xml' ) : string Check if element exists
fileExists ( $file )
getElement ( string $path, string $file = 'word/document.xml' ) : DOMElement Get element
getElementAttribute ( string $path, string $attribute, string $file = 'word/document.xml' ) : string Get element attribute
getFile ( ) : string Get file name
getFileDom ( string $file = 'word/document.xml' ) : DOMDocument Get DOM from file
getNodeList ( string $path, string $file = 'word/document.xml' ) : DOMNodeList Get node list
getPath ( ) : string Get path

Method Details

__construct() public méthode

Create new instance
public __construct ( string $path )
$path string

attributeElementExists() public méthode

Get element attribute
public attributeElementExists ( string $path, string $attribute, string $file = 'word/document.xml' ) : string
$path string
$attribute string
$file string
Résultat string

elementCount() public méthode

Check if element exists
public elementCount ( string $path, string $file ) : string
$path string
$file string
Résultat string

elementExists() public méthode

Check if element exists
public elementExists ( string $path, string $file = 'word/document.xml' ) : string
$path string
$file string
Résultat string

fileExists() public méthode

public fileExists ( $file )

getElement() public méthode

Get element
public getElement ( string $path, string $file = 'word/document.xml' ) : DOMElement
$path string
$file string
Résultat DOMElement

getElementAttribute() public méthode

Get element attribute
public getElementAttribute ( string $path, string $attribute, string $file = 'word/document.xml' ) : string
$path string
$attribute string
$file string
Résultat string

getFile() public méthode

Get file name
public getFile ( ) : string
Résultat string

getFileDom() public méthode

Get DOM from file
public getFileDom ( string $file = 'word/document.xml' ) : DOMDocument
$file string
Résultat DOMDocument

getNodeList() public méthode

Get node list
public getNodeList ( string $path, string $file = 'word/document.xml' ) : DOMNodeList
$path string
$file string
Résultat DOMNodeList

getPath() public méthode

Get path
public getPath ( ) : string
Résultat string