mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +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:
@@ -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)
|
||||
*
|
||||
|
Reference in New Issue
Block a user