Differential D9991 Diff 24151 src/applications/differential/conduit/DifferentialSetDiffPropertyConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialSetDiffPropertyConduitAPIMethod.php
- This file was moved from src/applications/differential/conduit/ConduitAPI_differential_setdiffproperty_Method.php.
| <?php | <?php | ||||
| final class ConduitAPI_differential_setdiffproperty_Method | final class DifferentialSetDiffPropertyConduitAPIMethod | ||||
| extends ConduitAPI_differential_Method { | extends DifferentialConduitAPIMethod { | ||||
| public function getAPIMethodName() { | |||||
| return 'differential.setdiffproperty'; | |||||
| } | |||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return 'Attach properties to Differential diffs.'; | return 'Attach properties to Differential diffs.'; | ||||
| } | } | ||||
| public function defineParamTypes() { | public function defineParamTypes() { | ||||
| return array( | return array( | ||||
| 'diff_id' => 'required diff_id', | 'diff_id' => 'required diff_id', | ||||
| ▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | if (!$property) { | ||||
| $property = new DifferentialDiffProperty(); | $property = new DifferentialDiffProperty(); | ||||
| $property->setDiffID($diff_id); | $property->setDiffID($diff_id); | ||||
| $property->setName($name); | $property->setName($name); | ||||
| } | } | ||||
| $property->setData($data); | $property->setData($data); | ||||
| $property->save(); | $property->save(); | ||||
| return $property; | return $property; | ||||
| } | } | ||||
| } | } | ||||