1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

Updates to PageProperties class. This was meant to be included in the previous commit resolving processwire/processwire-issues#1359

This commit is contained in:
Ryan Cramer
2021-03-30 08:05:14 -04:00
parent e68f4c2de6
commit 16fd4d4ab7

View File

@@ -16,6 +16,9 @@
abstract class PageProperties {
const typePage = 1;
const typePageArray = 2;
/**
* Page class helper object instances (one of each helper per ProcessWire instance, lazy loaded)
*
@@ -190,6 +193,24 @@ abstract class PageProperties {
'descendant' => 'findOne',
);
/**
* Method/property return types
*
* @var array
* @since 3.0.175
*
*/
public static $traversalReturnTypes = array(
'parent' => self::typePage,
'rootParent' => self::typePage,
'child' => self::typePage,
'next' => self::typePage,
'prev' => self::typePage,
'children' => self::typePageArray,
'parents' => self::typePageArray,
'siblings' => self::typePageArray,
);
/**
* Name and status language properties (populated by LanguagesSupport module when applicable)
*