Differential D12680 Diff 30510 src/applications/releeph/differential/DifferentialReleephRequestFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/differential/DifferentialReleephRequestFieldSpecification.php
Show All 33 Lines | public function getValueForStorage() { | ||||
return json_encode(array( | return json_encode(array( | ||||
'releephAction' => $this->releephAction, | 'releephAction' => $this->releephAction, | ||||
'releephPHIDs' => $this->releephPHIDs, | 'releephPHIDs' => $this->releephPHIDs, | ||||
)); | )); | ||||
} | } | ||||
public function setValueFromStorage($json) { | public function setValueFromStorage($json) { | ||||
if ($json) { | if ($json) { | ||||
$dict = json_decode($json, true); | $dict = phutil_json_decode($json); | ||||
$this->releephAction = idx($dict, 'releephAction'); | $this->releephAction = idx($dict, 'releephAction'); | ||||
$this->releephPHIDs = idx($dict, 'releephPHIDs'); | $this->releephPHIDs = idx($dict, 'releephPHIDs'); | ||||
} | } | ||||
return $this; | return $this; | ||||
} | } | ||||
public function shouldAppearOnRevisionView() { | public function shouldAppearOnRevisionView() { | ||||
return true; | return true; | ||||
▲ Show 20 Lines • Show All 321 Lines • Show Last 20 Lines |