getViewer(); return PhabricatorAuthContactNumber::initializeNewContactNumber($viewer); } protected function newObjectQuery() { return new PhabricatorAuthContactNumberQuery(); } protected function getObjectCreateTitleText($object) { return pht('Create Contact Number'); } protected function getObjectCreateButtonText($object) { return pht('Create Contact Number'); } protected function getObjectEditTitleText($object) { return pht('Edit Contact Number'); } protected function getObjectEditShortText($object) { return $object->getObjectName(); } protected function getObjectCreateShortText() { return pht('Create Contact Number'); } protected function getObjectName() { return pht('Contact Number'); } protected function getEditorURI() { return '/auth/contact/edit/'; } protected function getObjectCreateCancelURI($object) { return '/settings/panel/contact/'; } protected function getObjectViewURI($object) { return $object->getURI(); } protected function buildCustomEditFields($object) { return array( id(new PhabricatorTextEditField()) ->setKey('contactNumber') ->setTransactionType( PhabricatorAuthContactNumberNumberTransaction::TRANSACTIONTYPE) ->setLabel(pht('Contact Number')) ->setDescription(pht('The contact number.')) ->setValue($object->getContactNumber()) ->setIsRequired(true), ); } }