1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 09:44:38 +02:00

phpdoc improvement in Template.php

This commit is contained in:
Ryan Cramer
2024-04-19 11:47:31 -04:00
parent 432e369990
commit 7a85039896
2 changed files with 3 additions and 5 deletions

View File

@@ -676,7 +676,7 @@ abstract class AdminThemeFramework extends AdminTheme {
foreach($notices as $n => $notice) {
/** @var Notice $notice */
$text = $notice->text;
$text = (string) $notice->text;
$allowMarkup = $notice->flags & Notice::allowMarkup;
$groupByType = $options['groupByType'] && !($notice->flags & Notice::noGroup) && !($notice instanceof NoticeError);

View File

@@ -59,8 +59,8 @@
* @property string $sortfield Field that children of templates using this page should sort by (leave blank to let page decide, or specify "sort" for manual drag-n-drop). #pw-group-family
* @property int $noChildren Set to 1 to cancel use of childTemplates. #pw-group-family
* @property int $noParents Set to 1 to cancel use of parentTemplates, set to -1 to only allow one page using this template to exist. #pw-group-family
* @property array $childTemplates Array of template IDs that are allowed for children. Blank array indicates "any". #pw-group-family
* @property array $parentTemplates Array of template IDs that are allowed for parents. Blank array indicates "any". #pw-group-family
* @property int[] $childTemplates Array of template IDs that are allowed for children. Blank array indicates "any". #pw-group-family
* @property int[] $parentTemplates Array of template IDs that are allowed for parents. Blank array indicates "any". #pw-group-family
* @property string $childNameFormat Name format for child pages. when specified, the page-add UI step can be skipped when adding children. Counter appended till unique. Date format assumed if any non-pageName chars present. Use 'title' to pull from title field. #pw-group-family
*
* URLs
@@ -1617,5 +1617,3 @@ class Template extends WireData implements Saveable, Exportable {
}
}