Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/editor/AlmanacDeviceEditEngine.php
| Show All 24 Lines | public function getEngineApplicationClass() { | ||||
| return 'PhabricatorAlmanacApplication'; | return 'PhabricatorAlmanacApplication'; | ||||
| } | } | ||||
| protected function newEditableObject() { | protected function newEditableObject() { | ||||
| return AlmanacDevice::initializeNewDevice(); | return AlmanacDevice::initializeNewDevice(); | ||||
| } | } | ||||
| protected function newObjectQuery() { | protected function newObjectQuery() { | ||||
| return new AlmanacDeviceQuery(); | return id(new AlmanacDeviceQuery()) | ||||
| ->needProperties(true); | |||||
| } | } | ||||
| protected function getObjectCreateTitleText($object) { | protected function getObjectCreateTitleText($object) { | ||||
| return pht('Create Device'); | return pht('Create Device'); | ||||
| } | } | ||||
| protected function getObjectCreateButtonText($object) { | protected function getObjectCreateButtonText($object) { | ||||
| return pht('Create Device'); | return pht('Create Device'); | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||