cloneElement
- getTemplateVariables
- getTemplateVariablesType
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
cloneElement


Clones elements in the PowerPoint presentation.
Description
public cloneElement (array $referenceNode)
Parameters
referenceNode
An array to get the refence node.
The possible keys and values of this array are:
key | Type | Description |
---|---|---|
target | string |
|
type | string |
|
contains | string | Contains a text string. For paragraph, run, shape, table, table-row types. |
occurrence | mixed |
|
attributes | array | Contains a specific attribute key and value. Node or descendant attributes |
parent | string | Immediate children (default as '/', any parent) or any other parent (a:tbl/, p:sp/...). |
rootParent | string | Root parent. Default as p:spTree for slide elements and p:presentation for presentation elements. |
customQuery | string | Custom XPath query, overwrites any other reference. |
Exceptions
Method not available.
Code samples
Example #1
Example #2
Release notes
- phppptx 3.5:
- new method.