Page MenuHomePhabricator

D8348.diff
No OneTemporary

D8348.diff

Index: src/infrastructure/storage/lisk/LiskDAO.php
===================================================================
--- src/infrastructure/storage/lisk/LiskDAO.php
+++ src/infrastructure/storage/lisk/LiskDAO.php
@@ -183,12 +183,12 @@
const COUNTER_TABLE_NAME = 'lisk_counter';
- private $__dirtyFields = array();
- private $__missingFields = array();
- private static $processIsolationLevel = 0;
- private static $transactionIsolationLevel = 0;
+ private $dirtyFields = array();
+ private $missingFields = array();
+ private static $processIsolationLevel = 0;
+ private static $transactionIsolationLevel = 0;
- private $__ephemeral = false;
+ private $ephemeral = false;
private static $connections = array();
@@ -550,7 +550,7 @@
$columns[] = $this->getIDKey();
$properties = $this->getProperties();
- $this->__missingFields = array_diff_key(
+ $this->missingFields = array_diff_key(
array_flip($properties),
array_flip($columns));
}
@@ -1074,12 +1074,12 @@
* storage.
*/
public function makeEphemeral() {
- $this->__ephemeral = true;
+ $this->ephemeral = true;
return $this;
}
private function isEphemeralCheck() {
- if ($this->__ephemeral) {
+ if ($this->ephemeral) {
throw new LiskEphemeralObjectException();
}
}
@@ -1144,7 +1144,7 @@
$this->willSaveObject();
$data = $this->getPropertyValues();
if ($this->getConfigOption(self::CONFIG_PARTIAL_OBJECTS)) {
- $data = array_intersect_key($data, $this->__dirtyFields);
+ $data = array_intersect_key($data, $this->dirtyFields);
}
$this->willWriteData($data);
@@ -1690,9 +1690,9 @@
* @task util
*/
private function resetDirtyFields() {
- $this->__dirtyFields = array();
+ $this->dirtyFields = array();
if ($this->getConfigOption(self::CONFIG_TIMESTAMPS)) {
- $this->__dirtyFields['dateModified'] = true;
+ $this->dirtyFields['dateModified'] = true;
}
}
@@ -1741,7 +1741,7 @@
$dispatch_map[$method] = $property;
}
- if ($partial && isset($this->__missingFields[$property])) {
+ if ($partial && isset($this->missingFields[$property])) {
throw new Exception("Cannot get field that wasn't loaded: {$property}");
}
@@ -1764,8 +1764,8 @@
}
if ($partial) {
// Accept writes to fields that weren't initially loaded
- unset($this->__missingFields[$property]);
- $this->__dirtyFields[$property] = true;
+ unset($this->missingFields[$property]);
+ $this->dirtyFields[$property] = true;
}
$this->writeField($property, $args[0]);

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 11:03 PM (11 h, 13 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6912198
Default Alt Text
D8348.diff (2 KB)

Event Timeline