mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Documentation
This commit is contained in:
parent
6fc01394a6
commit
f368686adc
@ -197,14 +197,24 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
public static $cache_permissions = array();
|
||||
|
||||
/**
|
||||
* @see SiteTree::enforce_strict_hierarchy()
|
||||
* @var boolean
|
||||
*/
|
||||
private static $enforce_strict_hierarchy = true;
|
||||
protected static $enforce_strict_hierarchy = true;
|
||||
|
||||
/**
|
||||
* Determines if the system should avoid orphaned pages
|
||||
* by deleting all children when the their parent is deleted (TRUE),
|
||||
* or rather preserve this data even if its not reachable through any navigation path (FALSE).
|
||||
*
|
||||
* @param boolean
|
||||
*/
|
||||
public static function set_enforce_strict_hierarchy($to) {
|
||||
self::$enforce_strict_hierarchy = $to;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolean
|
||||
*/
|
||||
public static function get_enforce_strict_hierarchy() {
|
||||
return self::$enforce_strict_hierarchy;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user