protected function LdapServerAdmin::linesToArray in Lightweight Directory Access Protocol (LDAP) 8.2
Same name and namespace in other branches
- 7.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::linesToArray()
- 7 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::linesToArray()
1 call to LdapServerAdmin::linesToArray()
- LdapServerAdmin::populateFromDrupalForm in ldap_servers/
LdapServerAdmin.class.php
File
- ldap_servers/
LdapServerAdmin.class.php, line 497
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 = array();
}
return $array;
}