protected function LdapAuthenticationConfAdmin::linesToArray in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authentication/LdapAuthenticationConfAdmin.class.php \LdapAuthenticationConfAdmin::linesToArray()
- 7 ldap_authentication/LdapAuthenticationConfAdmin.class.php \LdapAuthenticationConfAdmin::linesToArray()
1 call to LdapAuthenticationConfAdmin::linesToArray()
- LdapAuthenticationConfAdmin::populateFromDrupalForm in ldap_authentication/
LdapAuthenticationConfAdmin.class.php
File
- ldap_authentication/
LdapAuthenticationConfAdmin.class.php, line 699
Class
Code
protected function linesToArray($lines) {
$lines = trim($lines);
if ($lines) {
$array = preg_split('/[\\n\\r]+/', $lines);
foreach ($array as $i => $value) {
$array[$i] = trim($value);
}
}
else {
$array = [];
}
return $array;
}