public function setAllowNull($allow_null)
public function setAllowNull($allow_null)
Parameters
$allow_null |
Return
wild |
public function setDefaultUsername($default_username)
public function setDefaultUsername($default_username)
Parameters
$default_username |
Return
wild |
public function setCredentialType($credential_type)
public function setCredentialType($credential_type)
Parameters
$credential_type |
Return
wild |
public function getCredentialType()
public function getCredentialType()
Return
wild |
public function setOptions($options)
public function setOptions($options)
Parameters
array | $options |
Return
wild |
protected function getCustomControlClass()
protected function getCustomControlClass()
Return
wild |
protected function renderInput()
protected function renderInput()
Return
wild |
public static function validateTransactions($actor, $xactions)
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 | $actor | The acting user. |
list<PhabricatorApplicationTransaction> | $xactions | List of credential altering transactions. |
Return
bool | True if the transactions are valid. |