PhpOffice\PhpPresentation\Tests\XmlDocument::elementExists PHP Метод

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

Check if element exists
public elementExists ( string $path, string $file = 'word/document.xml' ) : string
$path string
$file string
Результат string
    public function elementExists($path, $file = 'word/document.xml')
    {
        $nodeList = $this->getNodeList($path, $file);
        return !($nodeList->length == 0);
    }