Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionCommitEditEngine.php
<?php | <?php | ||||
final class DiffusionCommitEditEngine | final class DiffusionCommitEditEngine | ||||
extends PhabricatorEditEngine { | extends PhabricatorEditEngine { | ||||
const ENGINECONST = 'diffusion.commit'; | const ENGINECONST = 'diffusion.commit'; | ||||
const ACTIONGROUP_AUDIT = 'audit'; | |||||
const ACTIONGROUP_COMMIT = 'commit'; | |||||
public function isEngineConfigurable() { | public function isEngineConfigurable() { | ||||
return false; | return false; | ||||
} | } | ||||
public function getEngineName() { | public function getEngineName() { | ||||
return pht('Commits'); | return pht('Commits'); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | if ($reason !== false) { | ||||
), | ), | ||||
pht('Learn More')); | pht('Learn More')); | ||||
$fields[] = id(new PhabricatorStaticEditField()) | $fields[] = id(new PhabricatorStaticEditField()) | ||||
->setLabel(pht('Autoclose?')) | ->setLabel(pht('Autoclose?')) | ||||
->setValue(array($desc, " \xC2\xB7 ", $doc_link)); | ->setValue(array($desc, " \xC2\xB7 ", $doc_link)); | ||||
} | } | ||||
$actions = DiffusionCommitActionTransaction::loadAllActions(); | |||||
$actions = msortv($actions, 'getCommitActionOrderVector'); | |||||
foreach ($actions as $key => $action) { | |||||
$fields[] = $action->newEditField($object, $viewer); | |||||
} | |||||
return $fields; | return $fields; | ||||
} | } | ||||
} | } |