ODPElement __construct(
mixed
$tagelem, [string
$value = null], [string
$namespace = null]
)
|
|
Constructor.
This is a workaround, because DOMElements are not realy PHP classes.
Parameters:
|
mixed |
$tagelem: |
Either a DOMElement or a string |
|
string |
$value: |
|
|
string |
$namespace: |
|
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
Redefinition of:
- DOMElement::constructor __construct ( )
Redefined in descendants as:
void appendChild(
$child
)
|
|
Set attribute with namespace.
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
Redefinition of:
- DOMElement::appendChild ( )
void getAttributeNS(
string
$namespace, string
$tag, [string
$value = null]
)
|
|
Retrieve an attribute with namespace, tag and value.
If a default value is given and the attribute does not exists, it will be created.
Parameters:
|
string |
$namespace: |
|
|
string |
$tag: |
|
|
string |
$value: |
Default value |
API Tags:
Information Tags:
| Since: | 0.5.2 - 19. Mar. 2007 |
Redefinition of:
- DOMElement::getAttributeNS ( )
bool getChildNS(
$namespace,
$tag
)
|
|
Retrieve a child by its namespace and tag from the current node.
Parameters:
API Tags:
| Return: | True, if there is such an element else false. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 05. Mar. 2007 |
void getDrawAttribute(
$tagname, [
$value = null]
)
|
|
Retrieve a draw attribute of the current element.
'<... draw:$tagname="$ret"...>'
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.2 - 21. Mar. 2007 |
Return this element as uncovered DOMElement.
API Tags:
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
DOMElement getElementByTagNameNS(
string
$namespace, string
$tag
)
|
|
Retrieve (first) element by given tagname and namespace.
Parameters:
|
string |
$namespace: |
|
|
string |
$tag: |
|
API Tags:
| Return: | First found element if there is one, |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
DOMNodeList getElementsByTagNameNS(
string
$namespace, string
$tag
)
|
|
Retrieve elements by given tagname and namespace.
Parameters:
|
string |
$namespace: |
|
|
string |
$tag: |
|
API Tags:
| Return: | List of all found elements. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 16. Mar. 2007 |
Redefinition of:
- DOMElement::getElementsByTagNameNS ( )
void getStyleAttribute(
$tagname, [
$value = null]
)
|
|
Retrieve a style attribute of the current element.
'<... style:$tagname="$ret"...>'
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.2 - 19. Mar. 2007 |
void hasAttributeNS(
$namespace,
$tag
)
|
|
Check if this element has an attribute with given namespace and tagname.
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
Redefinition of:
- DOMElement::hasAttributeNS ( )
bool hasChildNS(
$namespace,
$tag
)
|
|
Check if the current element has a child $tag with $namespace.
Parameters:
API Tags:
| Return: | True, if there is such an element else false. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 05. Mar. 2007 |
mixed putAttributeNS(
$namespace,
$tag,
$value
)
|
|
Put an attribute with namespace, tag and value.
If an old attribute exists, it will be removed first.
Parameters:
|
|
$namespace: |
|
|
|
$tag: |
|
|
|
$value: |
|
API Tags:
| Return: | True if there was no old attibute, else the old attribute node. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 05. Mar. 2007 |
mixed putDrawAttribute(
string
$tagname, string
$value
)
|
|
Put (set with remove old) a draw attribute to the current ODPElement.
'<... draw:$tagname="$value"...>'
Parameters:
|
string |
$tagname: |
Tagname without prefix. |
|
string |
$value: |
Value of the attribute. |
API Tags:
| Return: | True if there was no old attibute, else the old attribute node. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 21. Mar. 2007 |
mixed putFOAttribute(
string
$tagname, string
$value
)
|
|
Put (set with remove old) a FO attribute to the current ODPElement.
'<... fo:$tagname="$value"...>'
Parameters:
|
string |
$tagname: |
Tagname without prefix. |
|
string |
$value: |
Value of the attribute. |
API Tags:
| Return: | True if there was no old attibute, else the old attribute node. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 16. Mar. 2007 |
mixed putStyleAttribute(
string
$tagname, string
$value
)
|
|
Put (set with remove old) a sytle attribute to the current ODPElement.
'<... style:$tagname="$value"...>'
Parameters:
|
string |
$tagname: |
Tagname without prefix. |
|
string |
$value: |
Value of the attribute. |
API Tags:
| Return: | True if there was no old attibute, else the old attribute node. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 16. Mar. 2007 |
void removeAttributeNS(
$namespace,
$tag
)
|
|
Set attribute with namespace.
Parameters:
API Tags:
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
Redefinition of:
- DOMElement::removeAttributeNS ( )
void setAttributeNS(
$namespace,
$tag,
$value
)
|
|
Set attribute with namespace.
Parameters:
|
|
$namespace: |
|
|
|
$tag: |
|
|
|
$value: |
|
API Tags:
Information Tags:
| Since: | 0.5.2 - 07. Mar. 2007 |
Redefinition of:
- DOMElement::setAttributeNS ( )
mixed setManifestAttribute(
$tag, string
$value, string
$tagname
)
|
|
Set a Manifest attribute to the current ODPElement.
'<... manifest:$tagname="$value"...>'
Parameters:
|
string |
$tagname: |
Tagname without prefix. |
|
string |
$value: |
Value of the attribute. |
|
|
$tag: |
|
API Tags:
| Return: | True if there was no old attibute, else the old attribute node. |
| Access: | public |
Information Tags:
| Since: | 0.5.2 - 16. Mar. 2007 |