Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/HarbormasterBuildable.php
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | PhabricatorWorker::scheduleTask( | ||||
)); | )); | ||||
return $build; | return $build; | ||||
} | } | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'containerPHID' => 'phid?', | |||||
'buildableStatus' => 'text32', | |||||
'isManualBuildable' => 'bool', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'key_buildable' => array( | |||||
'columns' => array('buildablePHID'), | |||||
), | |||||
'key_container' => array( | |||||
'columns' => array('containerPHID'), | |||||
), | |||||
'key_manual' => array( | |||||
'columns' => array('isManualBuildable'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
HarbormasterBuildablePHIDType::TYPECONST); | HarbormasterBuildablePHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |