3 abstract class PhabricatorEditEngineLock
9 final public function setViewer(PhabricatorUser
$viewer) {
10 $this->viewer
= $viewer;
14 final public function getViewer() {
18 final public function setObject($object) {
19 $this->object = $object;
23 final public function getObject() {
27 public function willPromptUserForLockOverrideWithDialog(
28 AphrontDialogView
$dialog) {
31 ->setTitle(pht('Edit Locked Object'))
32 ->appendParagraph(pht('This object is locked. Edit it anyway?'))
33 ->addSubmitButton(pht('Override Lock'));
36 public function willBlockUserInteractionWithDialog(
37 AphrontDialogView
$dialog) {
40 ->setTitle(pht('Object Locked'))
42 pht('You can not interact with this object because it is locked.'));
45 public function getLockedObjectDisplayText() {
46 return pht('This object has been locked.');
49 public static function newForObject(
50 PhabricatorUser
$viewer,
53 if ($object instanceof PhabricatorEditEngineLockableInterface
) {
54 $lock = $object->newEditEngineLock();
56 $lock = new PhabricatorEditEngineDefaultLock();