Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthFactorProvider.php
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | final class PhabricatorAuthFactorProvider | ||||
| public function newSortVector() { | public function newSortVector() { | ||||
| $factor = $this->getFactor(); | $factor = $this->getFactor(); | ||||
| return id(new PhutilSortVector()) | return id(new PhutilSortVector()) | ||||
| ->addInt($factor->getFactorOrder()) | ->addInt($factor->getFactorOrder()) | ||||
| ->addInt($this->getID()); | ->addInt($this->getID()); | ||||
| } | } | ||||
| public function getEnrollDescription(PhabricatorUser $user) { | |||||
| return $this->getFactor()->getEnrollDescription($this, $user); | |||||
| } | |||||
| public function getEnrollButtonText(PhabricatorUser $user) { | |||||
| return $this->getFactor()->getEnrollButtonText($this, $user); | |||||
| } | |||||
| /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
| public function getApplicationTransactionEditor() { | public function getApplicationTransactionEditor() { | ||||
| return new PhabricatorAuthFactorProviderEditor(); | return new PhabricatorAuthFactorProviderEditor(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||