Differential D14405 Diff 34806 src/applications/transactions/editengine/PhabricatorApplicationEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorApplicationEditEngine.php
| Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | if ($object instanceof PhabricatorSubscribableInterface) { | ||||
| ->setDescription(pht('Manage subscribers.')) | ->setDescription(pht('Manage subscribers.')) | ||||
| ->setAliases(array('subscriber', 'subscribers')) | ->setAliases(array('subscriber', 'subscribers')) | ||||
| ->setTransactionType($subscribers_type) | ->setTransactionType($subscribers_type) | ||||
| ->setValue($sub_phids); | ->setValue($sub_phids); | ||||
| $fields[] = $subscribers_field; | $fields[] = $subscribers_field; | ||||
| } | } | ||||
| } | } | ||||
| // TODO: This is just silly nonsense for now. | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
| $config = id(new PhabricatorApplicationEditConfiguration()) | |||||
| ->setProperty( | |||||
| 'instructions.head', | |||||
| pht( | |||||
| '(NOTE) **!!CHALLENGE MODE!!!** Can you figure out how to fill out '. | |||||
| 'this form?')) | |||||
| ->setProperty( | |||||
| 'defaults', | |||||
| array( | |||||
| 'text' => 'Feature Request: Natural wood-panel theme (mahogany?).', | |||||
| )); | |||||
| $fields = $config->applyConfigurationToFields($this, $fields); | |||||
| foreach ($fields as $field) { | foreach ($fields as $field) { | ||||
| $field | $field | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->setObject($object); | ->setObject($object); | ||||
| } | } | ||||
| return $fields; | return $fields; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | /* -( Creating and Loading Objects )--------------------------------------- */ | ||||
| /** | /** | ||||
| * Test if this workflow is creating a new object or editing an existing one. | * Test if this workflow is creating a new object or editing an existing one. | ||||
| * | * | ||||
| * @return bool True if a new object is being created. | * @return bool True if a new object is being created. | ||||
| * @task load | * @task load | ||||
| */ | */ | ||||
| final protected function getIsCreate() { | final public function getIsCreate() { | ||||
| return $this->isCreate; | return $this->isCreate; | ||||
| } | } | ||||
| /** | /** | ||||
| * Flag this workflow as a create or edit. | * Flag this workflow as a create or edit. | ||||
| * | * | ||||
| * @param bool True if this is a create workflow. | * @param bool True if this is a create workflow. | ||||
| ▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines | |||||
This comment has a TODO.