Differential D7326 Diff 23742 src/applications/phrequent/conduit/ConduitAPI_phrequent_push_Method.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phrequent/conduit/ConduitAPI_phrequent_push_Method.php
- This file was added.
<?php | |||||
/** | |||||
*@group conduit | |||||
*/ | |||||
final class ConduitAPI_phrequent_push_Method | |||||
extends ConduitAPI_phrequent_Method { | |||||
public function getMethodDescription() { | |||||
return pht( | |||||
'Start tracking time on an object by '. | |||||
epriestley: pht() and linewrap | |||||
'pushing it on the tracking stack.'); | |||||
} | |||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_UNSTABLE; | |||||
} | |||||
public function defineParamTypes() { | |||||
return array( | |||||
Not Done Inline ActionsobjectPHID epriestley: `objectPHID` | |||||
'objectPHID' => 'required phid' | |||||
); | |||||
} | |||||
Not Done Inline ActionsLikewise, maybe call this startTime. epriestley: Likewise, maybe call this `startTime`. | |||||
public function defineReturnType() { | |||||
return 'phid'; | |||||
} | |||||
public function defineErrorTypes() { | |||||
return array( | |||||
); | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | |||||
$user = $request->getUser(); | |||||
$object_phid = $request->getValue('objectPHID'); | |||||
$editor = new PhrequentTrackingEditor(); | |||||
Not Done Inline Actionsphid, as above epriestley: `phid`, as above | |||||
return $editor->startTracking($user, $object_phid); | |||||
} | |||||
} |
pht() and linewrap