1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00

Minor phpdoc updates

This commit is contained in:
Ryan Cramer
2024-06-28 17:15:17 -04:00
parent 0500293f96
commit d5faf861dc
2 changed files with 6 additions and 1 deletions

View File

@@ -1838,6 +1838,8 @@ class Page extends WireData implements \Countable, WireMatchable {
* - When a string or array, a selector is assumed and quantity will be counted based on selector. * - When a string or array, a selector is assumed and quantity will be counted based on selector.
* - When boolean true, number includes only visible children (excludes unpublished, hidden, no-access, etc.) * - When boolean true, number includes only visible children (excludes unpublished, hidden, no-access, etc.)
* - When boolean false, number includes all children without conditions, including unpublished, hidden, no-access, etc. * - When boolean false, number includes all children without conditions, including unpublished, hidden, no-access, etc.
* - When integer 1 number includes “viewable” children (as opposed to “visible” children, viewable children includes
* hidden pages and also includes unpublished pages if user has page-edit permission).
* @return int Number of children * @return int Number of children
* @see Page::hasChildren(), Page::children(), Page::child() * @see Page::hasChildren(), Page::children(), Page::child()
* *

View File

@@ -371,10 +371,13 @@ class InputfieldDatetime extends Inputfield {
} }
/** /**
* Get or set jQuery UI datepicker options * Get or set jQuery UI datepicker (and timepicker) options
* *
* <https://api.jqueryui.com/datepicker/> * <https://api.jqueryui.com/datepicker/>
* *
* Can also be used with several timepicker options:
* <https://trentrichardson.com/examples/timepicker/#tp-options>
*
* ~~~~~ * ~~~~~
* // set custom options * // set custom options
* $inputfield->datepickerOptions([ 'changeMonth' => false, 'changeYear' => false ]); * $inputfield->datepickerOptions([ 'changeMonth' => false, 'changeYear' => false ]);