Differential D21530 Diff 51249 src/applications/policy/management/PhabricatorPolicyManagementUnlockWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/management/PhabricatorPolicyManagementUnlockWorkflow.php
| <?php | <?php | ||||
| final class PhabricatorPolicyManagementUnlockWorkflow | final class PhabricatorPolicyManagementUnlockWorkflow | ||||
| extends PhabricatorPolicyManagementWorkflow { | extends PhabricatorPolicyManagementWorkflow { | ||||
| protected function didConstruct() { | protected function didConstruct() { | ||||
| $this | $this | ||||
| ->setName('unlock') | ->setName('unlock') | ||||
| ->setSynopsis( | ->setSynopsis( | ||||
| pht( | pht( | ||||
| 'Unlock an object which has policies that prevent it from being '. | 'Unlock one or more objects by changing their view policies, edit '. | ||||
| 'viewed or edited.')) | 'policies, or owners.')) | ||||
| ->setExamples('**unlock** --view __user__ __object__') | ->setHelp( | ||||
| pht( | |||||
| 'Identify each __object__ by passing an object name '. | |||||
| '(like "T123") or a PHID (like "PHID-ABCD-1234...").'. | |||||
| "\n\n". | |||||
| 'Not every type of object has an editable view policy, edit '. | |||||
| 'policy, or owner, so not all modes will work with all objects. ')) | |||||
| ->setExamples('**unlock** --view __user__ __object__ ...') | |||||
| ->setArguments( | ->setArguments( | ||||
| array( | array( | ||||
| array( | array( | ||||
| 'name' => 'view', | 'name' => 'view', | ||||
| 'param' => 'username', | 'param' => 'username', | ||||
| 'help' => pht( | 'help' => pht( | ||||
| 'Change the view policy of an object so that the specified '. | 'Change the view policy of an object so that the specified '. | ||||
| 'user may view it.'), | 'user may view it.'), | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||