GLDOMElement __construct(
[
$class = NULL], [
$id = NULL]
)
|
|
Parameters:
API Tags:
Redefinition of:
- GLDataset::__construct()
Redefined in descendants as:
void add_child(
&$object
)
|
|
Parameters:
API Tags:
array|bool find_child(
string
$search
)
|
|
Return the first matching element
Find a child using the following search pattern simmilar to CSS selector on HTML DOM:
[<classs>].
Both Class and ID can be ommited.
Return the first matching element
Find a child using the following search pattern simmilar to CSS selector on HTML DOM:
[<classs>].[<id>][@<index>]
Both Class and ID can be ommited. If ommited, everything will be selected. Also, in contrast with find_children, you can specify a specific child instead of the first. <index> is 1-based.
Parameters:
|
string |
$search: |
The search pattern |
API Tags:
| Return: | Return the child objects that match the criteria |
| Access: | public |
array find_children(
string
$search, [int
$count = 0]
)
|
|
Return all the matching elements
Return all the matching elements
Find a child using the following search pattern simmilar to CSS selector on HTML DOM:
[<classs>].[<id>] : Both Class and ID can be ommited. If ommited, everything will be selected
Parameters:
|
string |
$search: |
The search pattern |
|
int |
$count: |
[Optional] The maximum entries to return |
API Tags:
| Return: | Return the child objects that match the criteria |
| Access: | public |
void remove_child(
$objid
)
|
|
Parameters:
API Tags: