Remove

This class is the responsible of removing content from the template

package

Docxpresso

subpackage

Templates

Methods

Construct

__construct(\Docxpresso\Templates\DOMDocument $dom, array $options) 
access

public

Arguments

$dom

\Docxpresso\Templates\DOMDocument

$options

array

removes bookmarked content

_removeBookmark(array $options) : void
access

private

Arguments

$options

array

removes a generic document element

_removeElement(array $options) : void
access

private

Arguments

$options

array

removes all content falling under a heading

_removeHeading(array $options) : void
access

private

Arguments

$options

array

removes an object/image node

_removeObject(array $options, integer $iteration = 1) : void
access

private

Arguments

$options

array

$iteration

integer

removes a text node

_removeText(array $options) : void
access

private

Arguments

$options

array

removes a textbox node

_removeTextbox(array $options, integer $iteration = 1) : void
access

private

Arguments

$options

array

$iteration

integer

Properties

The DOMDOcument we wish to manipulate

_dom : \Docxpresso\Templates\DOMDocument
var
access

private

Type(s)

\Docxpresso\Templates\DOMDocument

The required DOMXPath object

_docxpath : \Docxpresso\Templates\DOMXPath
var
access

private

Type(s)

\Docxpresso\Templates\DOMXPath

An instance of the ODFQuery required to build the queries

_ODFQuery : \Docxpresso\Templates\ODFQuery
var
access

private

Type(s)

\Docxpresso\Templates\ODFQuery