anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00218
[Bug 514479] Re: Array access interface for XML nodes and pages
1756 Wouter Bolsterlee 2010-02-16
[xml/dom] Implement ArrayAccess interface for DOM nodes
The main XML DOM node class now implements the ArrayAccess
interface.
This means that you can now use fancy code like this:
$div = ax_div();
$div['style'] = 'background-color: red;'
$div[] = ax_p('The first paragraph in the div.');
$div[] = ax_p('The second paragraph in the div.');
$div[0]['id'] = 'first-paragraph';
$div[-1]['id'] = 'last-paragraph';
This works for all DOM nodes, including XML document
fragments (except for setting attributes, since fragments do
not have attributes.)
Part of bug #514479.
** Changed in: anewt
Status: Triaged => In Progress
** Changed in: anewt
Assignee: (unassigned) => Wouter Bolsterlee (uws) (uws)
--
Array access interface for XML nodes and pages
https://bugs.launchpad.net/bugs/514479
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.
References