mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +02:00
Minor phpdoc updates for API reference
This commit is contained in:
@@ -4096,7 +4096,7 @@ class Page extends WireData implements \Countable, WireMatchable {
|
||||
*
|
||||
* ~~~~~
|
||||
* // set and save a meta value
|
||||
* $page->meta()->set('colors', [ 'red, 'green', 'blue' ]);
|
||||
* $page->meta()->set('colors', [ 'red', 'green', 'blue' ]);
|
||||
*
|
||||
* // get a meta value
|
||||
* $colors = $page->meta()->get('colors');
|
||||
|
@@ -264,7 +264,7 @@ class Pages extends Wire {
|
||||
* - `findOne` (bool): Apply optimizations for finding a single page (default=false).
|
||||
* - `findAll` (bool): Find all pages with no exclusions, same as "include=all" option (default=false).
|
||||
* - `findIDs` (bool|int): 1 to get array of page IDs, true to return verbose array, 2 to return verbose array with all cols in 3.0.153+. (default=false).
|
||||
* - `getTotal` (bool): Whether to set returning PageArray's "total" property (default=true, except when findOne=true).
|
||||
* - `getTotal` (bool): Whether to set returning PageArray's "total" property (default=true) except when findOne=true.
|
||||
* - `loadPages` (bool): Whether to populate the returned PageArray with found pages (default=true).
|
||||
* The only reason why you'd want to change this to false would be if you only needed the count details from
|
||||
* the PageArray: getTotal(), getStart(), getLimit, etc. This is intended as an optimization for $pages->count().
|
||||
|
Reference in New Issue
Block a user