Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/editor/DrydockBlueprintEditEngine.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if ($impl) { | ||||
$blueprint | $blueprint | ||||
->setClassName(get_class($impl)) | ->setClassName(get_class($impl)) | ||||
->attachImplementation(clone $impl); | ->attachImplementation(clone $impl); | ||||
} | } | ||||
return $blueprint; | return $blueprint; | ||||
} | } | ||||
protected function newEditableObjectForDocumentation() { | |||||
// In order to generate the proper list of fields/transactions for a | |||||
// blueprint, a blueprint's type needs to be known upfront, and there's | |||||
// currently no way to pre-specify the type. Hardcoding an implementation | |||||
// here prevents the fatal on the Conduit API page and allows transactions | |||||
// to be edited. | |||||
$impl = new DrydockWorkingCopyBlueprintImplementation(); | |||||
$this->setBlueprintImplementation($impl); | |||||
return $this->newEditableObject(); | |||||
} | |||||
protected function newObjectQuery() { | protected function newObjectQuery() { | ||||
return new DrydockBlueprintQuery(); | return new DrydockBlueprintQuery(); | ||||
} | } | ||||
protected function getObjectCreateTitleText($object) { | protected function getObjectCreateTitleText($object) { | ||||
return pht('Create Blueprint'); | return pht('Create Blueprint'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |