values ->transform(function($item) { $format = sprintf('%s%s
%s
', $item, static::get($item,'title'), ($x=static::get($item,'ref')) ? sprintf('',$x) : '', static::get($item,'desc'), ); return $format; })->join('
* "SCRAM-SHA-1" => array:3 [▼
* "title" => "Salted Challenge Response Authentication Mechanism (SCRAM) SHA1"
* "ref" => "RFC 5802"
* "desc" => "This specification describes a family of authentication mechanisms called the Salted Challenge Response Authentication Mechanism (SCRAM) which addresses the req ▶"
* ]
*
*
* @param string $string The SASL Mechanism (ie, "SCRAM-SHA-1") of interest.
* @param string $key The title|ref|desc to return
* @return string|NULL
*/
protected static function get(string $string,string $key): ?string
{
return parent::_get(config_path('ldap_supported_saslmechanisms.txt'),$string,$key);
}
}