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 {
/**
* 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
* @return boolean
*/
public function StripData($noHierarchyCache = true) {
public function StripData($stripHierarchyCache = true) {
unset($this->changed);
unset($this->unsetdata);
unset($this->forceSave);
......@@ -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();
}
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