PHP Класс PhpOffice\PhpPresentation\Tests\XmlDocument

Показать файл Открыть проект

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

Метод Описание
__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

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

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

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

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

Get element attribute
public attributeElementExists ( string $path, string $attribute, string $file = 'word/document.xml' ) : string
$path string
$attribute string
$file string
Результат string

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

Check if element exists
public elementCount ( string $path, string $file ) : string
$path string
$file string
Результат string

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

Check if element exists
public elementExists ( string $path, string $file = 'word/document.xml' ) : string
$path string
$file string
Результат string

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

public fileExists ( $file )

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

Get element
public getElement ( string $path, string $file = 'word/document.xml' ) : DOMElement
$path string
$file string
Результат DOMElement

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

Get element attribute
public getElementAttribute ( string $path, string $attribute, string $file = 'word/document.xml' ) : string
$path string
$attribute string
$file string
Результат string

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

Get file name
public getFile ( ) : string
Результат string

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

Get DOM from file
public getFileDom ( string $file = 'word/document.xml' ) : DOMDocument
$file string
Результат DOMDocument

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

Get node list
public getNodeList ( string $path, string $file = 'word/document.xml' ) : DOMNodeList
$path string
$file string
Результат DOMNodeList

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

Get path
public getPath ( ) : string
Результат string