Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/HarbormasterBuildable.php
Show All 20 Lines | final class HarbormasterBuildable extends HarbormasterDAO | ||||
public static function initializeNewBuildable(PhabricatorUser $actor) { | public static function initializeNewBuildable(PhabricatorUser $actor) { | ||||
return id(new HarbormasterBuildable()) | return id(new HarbormasterBuildable()) | ||||
->setIsManualBuildable(0) | ->setIsManualBuildable(0) | ||||
->setBuildStatus(self::STATUS_WHATEVER) | ->setBuildStatus(self::STATUS_WHATEVER) | ||||
->setBuildableStatus(self::STATUS_WHATEVER); | ->setBuildableStatus(self::STATUS_WHATEVER); | ||||
} | } | ||||
public function getMonogram() { | |||||
return 'B'.$this->getID(); | |||||
} | |||||
/** | /** | ||||
* Returns an existing buildable for the object's PHID or creates a | * Returns an existing buildable for the object's PHID or creates a | ||||
* new buildable implicitly if needed. | * new buildable implicitly if needed. | ||||
*/ | */ | ||||
public static function createOrLoadExisting( | public static function createOrLoadExisting( | ||||
PhabricatorUser $actor, | PhabricatorUser $actor, | ||||
$buildable_object_phid, | $buildable_object_phid, | ||||
$container_object_phid) { | $container_object_phid) { | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |