Differential D7715 Diff 17446 src/applications/harbormaster/controller/HarbormasterStepEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterStepEditController.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | foreach ($implementation->getSettingDefinitions() as $name => $opt) { | ||||
$control = id(new AphrontFormCheckboxControl()) | $control = id(new AphrontFormCheckboxControl()) | ||||
->setLabel($this->getReadableName($name, $opt)) | ->setLabel($this->getReadableName($name, $opt)) | ||||
->setName($name) | ->setName($name) | ||||
->setValue($value); | ->setValue($value); | ||||
break; | break; | ||||
case BuildStepImplementation::SETTING_TYPE_ARTIFACT: | case BuildStepImplementation::SETTING_TYPE_ARTIFACT: | ||||
$filter = $opt['artifact_type']; | $filter = $opt['artifact_type']; | ||||
$available_artifacts = | $available_artifacts = | ||||
BuildStepImplementation::getAvailableArtifacts( | BuildStepImplementation::loadAvailableArtifacts( | ||||
$plan, | $plan, | ||||
$step, | $step, | ||||
$filter); | $filter); | ||||
$options = array(); | $options = array(); | ||||
foreach ($available_artifacts as $key => $type) { | foreach ($available_artifacts as $key => $type) { | ||||
$options[$key] = $key; | $options[$key] = $key; | ||||
} | } | ||||
$control = id(new AphrontFormSelectControl()) | $control = id(new AphrontFormSelectControl()) | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |