anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00220
[Bug 514479] Re: Array access interface for XML nodes and pages
1758 Wouter Bolsterlee 2010-02-16
[page] Implement array access syntactic sugar for AnewtPage
Fixes bug #514479.
Added some syntactic sugar to AnewtPage that allows
appending content to blocks easier. Yay for less typing (and
less parentheses)!
This code:
$page->append(ax_p('Some text.'));
$page->append_to('some-block', ax_p('Some text.'));
...does exactly the same as this:
$page[] = ax_p('Some text.');
$page['some-block'][] = ax_p('Some text.');
The docs have also been updated to reflect this API
addition.
** Changed in: anewt
Status: In Progress => Fix Released
--
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