Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/harbormaster/conduit/HarbormasterConduitAPIMethod.php
12256 views
1
<?php
2
3
abstract class HarbormasterConduitAPIMethod extends ConduitAPIMethod {
4
5
final public function getApplication() {
6
return PhabricatorApplication::getByClass(
7
'PhabricatorHarbormasterApplication');
8
}
9
10
protected function returnArtifactList(array $artifacts) {
11
$list = array();
12
13
foreach ($artifacts as $artifact) {
14
$list[] = array(
15
'phid' => $artifact->getPHID(),
16
);
17
}
18
19
return $list;
20
}
21
22
}
23
24