Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/HarbormasterBuildable.php
<?php | <?php | ||||
final class HarbormasterBuildable extends HarbormasterDAO | final class HarbormasterBuildable extends HarbormasterDAO | ||||
implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
protected $buildablePHID; | protected $buildablePHID; | ||||
protected $containerPHID; | protected $containerPHID; | ||||
protected $buildStatus; | protected $buildStatus; | ||||
protected $buildableStatus; | protected $buildableStatus; | ||||
private $buildableObject = self::ATTACHABLE; | private $buildableObject = self::ATTACHABLE; | ||||
private $containerObject = self::ATTACHABLE; | private $containerObject = self::ATTACHABLE; | ||||
private $buildableHandle = self::ATTACHABLE; | private $buildableHandle = self::ATTACHABLE; | ||||
const STATUS_WHATEVER = 'whatever'; | |||||
epriestley: oh perfect
our work here is done
| |||||
public static function initializeNewBuildable(PhabricatorUser $actor) { | public static function initializeNewBuildable(PhabricatorUser $actor) { | ||||
return id(new HarbormasterBuildable()) | return id(new HarbormasterBuildable()) | ||||
->setBuildStatus('new') // TODO: Define these. | ->setBuildStatus(self::STATUS_WHATEVER) | ||||
->setBuildableStatus('active'); // TODO: Define these, too. | ->setBuildableStatus(self::STATUS_WHATEVER); | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |
oh perfect
our work here is done