mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Add new $pages API methods: findIDs(), sort(), insertAfter, insertBefore(). Add support for negative "limit" and "start" values in selectors, where negative values reference the end of the set rather than the beginning. Add support for "eq=n" (or alias "index=n") selectors (both WireArray and PageFinder) for pulling a specific n'th item, can also specify "first" or "last" for "n". Update $page->editUrl(true) method to force return of edit URL with scheme and hostname.
This commit is contained in:
@@ -65,7 +65,7 @@ class PageTraversal {
|
||||
* @param Page $page
|
||||
* @param string|array $selector Selector to use, or blank to return all children
|
||||
* @param array $options
|
||||
* @return PageArray
|
||||
* @return PageArray|array
|
||||
*
|
||||
*/
|
||||
public function children(Page $page, $selector = '', $options = array()) {
|
||||
|
Reference in New Issue
Block a user