Added removeNonPublicDataFromArray().
[core.git] / inc / classes / main / database / databases / class_LocalFileDatabase.php
index 445b7f8..7fd9e90 100644 (file)
@@ -596,6 +596,21 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackend {
                // Return the column
                return $primaryKey;
        }
+
+       /**
+        * Removes non-public data from given array.
+        *
+        * @param       $data   An array with possible non-public data that needs to be removed.
+        * @return      $data   A cleaned up array with only public data.
+        * @todo        Add more generic non-public data for removal
+        */
+       public function removeNonPublicDataFromArray (array $data) {
+               // Remove '__idx'
+               unset($data[$this->indexKey]);
+
+               // Return it
+               return $data;
+       }
 }
 
 // [EOF]