From 6bfe4e65e2ddbba9a4ccbf20f7a94ba22cad3d0d Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 12 Jan 2017 15:09:22 -0500 Subject: [PATCH] Minor corrections to phpdoc in Page, WireArray and PageArray --- wire/core/Page.php | 3 ++- wire/core/PageArray.php | 3 ++- wire/core/WireArray.php | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/wire/core/Page.php b/wire/core/Page.php index e09c6e61..111357c7 100644 --- a/wire/core/Page.php +++ b/wire/core/Page.php @@ -43,7 +43,8 @@ * @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 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 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 diff --git a/wire/core/PageArray.php b/wire/core/PageArray.php index 0bf4e8bf..3fbf937d 100644 --- a/wire/core/PageArray.php +++ b/wire/core/PageArray.php @@ -25,7 +25,8 @@ * https://processwire.com * * @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 * */ diff --git a/wire/core/WireArray.php b/wire/core/WireArray.php index 78bac195..081d244d 100644 --- a/wire/core/WireArray.php +++ b/wire/core/WireArray.php @@ -16,6 +16,11 @@ * https://processwire.com * * @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-summary WireArray is the base iterable array type used throughout the ProcessWire framework.