4require_once
'Services/User/exceptions/class.ilUserException.php';
30 switch (strtolower(
$key)) {
31 case 'default_password_encoder':
55 if ($encoder->isSupportedByRuntime()) {
56 $this->encoders[$encoder->getName()] = $encoder;
91 $this->encoders = array();
96 $this->encoders[$encoder->getName()] = $encoder;
116 if (!isset($this->encoders[
$name])) {
117 if (!$get_default_on_mismatch) {
120 throw new ilUserException(
'No default encoder specified, fallback not possible.');
122 throw new ilUserException(
"No default encoder found for name: '{$this->getDefaultEncoder()}'.");
128 return $this->encoders[
$name];
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Class for user related exception handling in ILIAS.
getEncoderByName($name, $get_default_on_mismatch=false)
setEncoders(array $encoders)
setDefaultEncoder($default_encoder)
__construct(array $config=array())
initEncoders(array $config)
getSupportedEncoderNames()