Differential D21696 Diff 51711 src/applications/harbormaster/conduit/HarbormasterConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/conduit/HarbormasterConduitAPIMethod.php
<?php | <?php | ||||
abstract class HarbormasterConduitAPIMethod extends ConduitAPIMethod { | abstract class HarbormasterConduitAPIMethod extends ConduitAPIMethod { | ||||
final public function getApplication() { | final public function getApplication() { | ||||
return PhabricatorApplication::getByClass( | return PhabricatorApplication::getByClass( | ||||
'PhabricatorHarbormasterApplication'); | 'PhabricatorHarbormasterApplication'); | ||||
} | } | ||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_UNSTABLE; | |||||
} | |||||
public function getMethodStatusDescription() { | |||||
return pht('All Harbormaster APIs are new and subject to change.'); | |||||
} | |||||
protected function returnArtifactList(array $artifacts) { | protected function returnArtifactList(array $artifacts) { | ||||
$list = array(); | $list = array(); | ||||
foreach ($artifacts as $artifact) { | foreach ($artifacts as $artifact) { | ||||
$list[] = array( | $list[] = array( | ||||
'phid' => $artifact->getPHID(), | 'phid' => $artifact->getPHID(), | ||||
); | ); | ||||
} | } | ||||
return $list; | return $list; | ||||
} | } | ||||
} | } |