1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Minor corrections to phpdoc in Page, WireArray and PageArray

This commit is contained in:
Ryan Cramer
2017-01-12 15:09:22 -05:00
parent 501a097e29
commit 6bfe4e65e2
3 changed files with 9 additions and 2 deletions

View File

@@ -43,7 +43,8 @@
* @property Template|null $templatePrevious Previous template, if template was changed. #pw-advanced * @property Template|null $templatePrevious Previous template, if template was changed. #pw-advanced
* @property Fieldgroup $fields All the Fields assigned to this page (via its template). Returns a Fieldgroup. #pw-advanced * @property Fieldgroup $fields All the Fields assigned to this page (via its template). Returns a Fieldgroup. #pw-advanced
* @property int $numChildren The number of children (subpages) this page has, with no exclusions (fast). #pw-group-traversal * @property int $numChildren The number of children (subpages) this page has, with no exclusions (fast). #pw-group-traversal
* @property int $numVisibleChildren The number of visible children this page has. Excludes unpublished, no-access, hidden, etc. #pw-group-traversal * @property int $hasChildren The number of visible children this page has. Excludes unpublished, no-access, hidden, etc. #pw-group-traversal
* @property int $numVisibleChildren Verbose alias of $hasChildren #pw-internal
* @property PageArray $children All the children of this page. Returns a PageArray. See also $page->children($selector). #pw-group-traversal * @property PageArray $children All the children of this page. Returns a PageArray. See also $page->children($selector). #pw-group-traversal
* @property Page|NullPage $child The first child of this page. Returns a Page. See also $page->child($selector). #pw-group-traversal * @property Page|NullPage $child The first child of this page. Returns a Page. See also $page->child($selector). #pw-group-traversal
* @property PageArray $siblings All the sibling pages of this page. Returns a PageArray. See also $page->siblings($selector). #pw-group-traversal * @property PageArray $siblings All the sibling pages of this page. Returns a PageArray. See also $page->siblings($selector). #pw-group-traversal

View File

@@ -25,7 +25,8 @@
* https://processwire.com * https://processwire.com
* *
* @method string getMarkup($key = null) Render a simple/default markup value for each item #pw-internal * @method string getMarkup($key = null) Render a simple/default markup value for each item #pw-internal
* * @property Page|null $first First item
* @property Page|null $last Last item
* @property Page[] $data #pw-internal * @property Page[] $data #pw-internal
* *
*/ */

View File

@@ -16,6 +16,11 @@
* https://processwire.com * https://processwire.com
* *
* @method WireArray and($item) * @method WireArray and($item)
* @property int $count Number of items
* @property Wire|null $first First item
* @property Wire|null $last Last item
* @property array $keys All keys used in this WireArray
* @property array $values All values used in this WireArray
* *
* #pw-order-groups traversal,retrieval,manipulation,info,output-rendering,other-data-storage,changes,fun-tools,hooker * #pw-order-groups traversal,retrieval,manipulation,info,output-rendering,other-data-storage,changes,fun-tools,hooker
* #pw-summary WireArray is the base iterable array type used throughout the ProcessWire framework. * #pw-summary WireArray is the base iterable array type used throughout the ProcessWire framework.