Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14356661
D8348.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8348.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8348: Fixed naming convention violations.
Attached
Detach File
Event Timeline
Log In to Comment