diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-05 10:38:53 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-05 10:38:53 -0700 |
commit | e8c57290a2e98e3cbb7cf47875e6e5dae2e41fa2 (patch) | |
tree | a49506eb1f88a2d657a89e282292ff25dd249a06 /modules/gallery/lib/HTMLPurifier/HTMLPurifier.includes.php | |
parent | 9f396178cedc96abb282e72ff0e843e255c8225a (diff) |
Change the children and descendants APIs to be more consistent and to
remove Gallery3 concepts from ORM_MPTT.
The following API methods:
ORM_MPTT::children
ORM_MPTT::children_count
ORM_MPTT::descendants
ORM_MPTT::descendants_count
All now take a $where clause that allow you to pass through additional
field parameters.
old API:
$album->children(10, 0, "photos")
$album->children_count("photos")
new API:
$album->children(10, 0, array("type" => "photos"))
$album->children_count(array("type" => "photos"))
This gives us a more flexible API and simplifies the code. While I
was in there, I changed the way we deal with default orderby values so
that we just assign the default value in the function definition,
which allows us to get rid of all conditionals in the implementation
which results in simpler code.
Diffstat (limited to 'modules/gallery/lib/HTMLPurifier/HTMLPurifier.includes.php')
0 files changed, 0 insertions, 0 deletions