Page MenuHomenazrin ltd
Diviner Tech Docs PassphraseCredentialControl

final class PassphraseCredentialControl
Phorge Technical Documentation (Passphrase)

This class is not documented.

Methods

public function setAllowNull($allow_null)

This method is not documented.
Parameters
$allow_null
Return
wild

public function setDefaultUsername($default_username)

This method is not documented.
Parameters
$default_username
Return
wild

public function setCredentialType($credential_type)

This method is not documented.
Parameters
$credential_type
Return
wild

public function getCredentialType()

This method is not documented.
Return
wild

public function setOptions($options)

This method is not documented.
Parameters
array$options
Return
wild

protected function getCustomControlClass()

This method is not documented.
Return
wild

protected function renderInput()

This method is not documented.
Return
wild

public static function validateTransactions($actor, $xactions)

Verify that a given actor has permission to use all of the credentials in a list of credential transactions.

In general, the rule here is:

  • If you're editing an object and it uses a credential you can't use, that's fine as long as you don't change the credential.
  • If you do change the credential, the new credential must be one you can use.
Parameters
PhabricatorUser$actorThe acting user.
list<PhabricatorApplicationTransaction>$xactionsList of credential altering transactions.
Return
boolTrue if the transactions are valid.