Commit be218d85 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1197 rename $noHierarchyCache to $stripHierarchyCache.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 59c8a9cb
...@@ -177,12 +177,12 @@ class ASDevice extends StateObject { ...@@ -177,12 +177,12 @@ class ASDevice extends StateObject {
/** /**
* Removes internal data from the object, so this data can not be exposed. * Removes internal data from the object, so this data can not be exposed.
* *
* @param boolean $noHierarchyCache (opt) strips the hierarchy cache - default: true * @param boolean $stripHierarchyCache (opt) strips the hierarchy cache - default: true
* *
* @access public * @access public
* @return boolean * @return boolean
*/ */
public function StripData($noHierarchyCache = true) { public function StripData($stripHierarchyCache = true) {
unset($this->changed); unset($this->changed);
unset($this->unsetdata); unset($this->unsetdata);
unset($this->forceSave); unset($this->forceSave);
...@@ -202,7 +202,7 @@ class ASDevice extends StateObject { ...@@ -202,7 +202,7 @@ class ASDevice extends StateObject {
} }
if (!$noHierarchyCache && $this->hierarchyCache !== false && $this->hierarchyCache instanceof ChangesMemoryWrapper) { if (!$stripHierarchyCache && $this->hierarchyCache !== false && $this->hierarchyCache instanceof ChangesMemoryWrapper) {
$this->hierarchyCache->StripData(); $this->hierarchyCache->StripData();
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment