PHP Class PhpOffice\PhpPresentation\Tests\XmlDocument

Show file Open project: phpoffice/phppowerpoint

Public Methods

Method 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 method

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

attributeElementExists() public method

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

elementCount() public method

Check if element exists
public elementCount ( string $path, string $file ) : string
$path string
$file string
return string

elementExists() public method

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

fileExists() public method

public fileExists ( $file )

getElement() public method

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

getElementAttribute() public method

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

getFile() public method

Get file name
public getFile ( ) : string
return string

getFileDom() public method

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

getNodeList() public method

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

getPath() public method

Get path
public getPath ( ) : string
return string