Permalink
Browse files

MINOR Documentation

  • Loading branch information...
1 parent 6fc0139 commit f368686adc76b48fa15fb85abb08fabdc9f82803 @chillu chillu committed Sep 23, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 code/model/SiteTree.php
View
@@ -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;
}

0 comments on commit f368686

Please sign in to comment.