// <display name> !"), while full name is the official full name.
protected $display_name = null;
protected $full_name = null;
+ protected $sort_name = null;
// Other important parameters used when sending emails.
protected $gender = null; // Acceptable values are GENDER_MALE and GENDER_FEMALE
}
return $this->email;
}
- public function forlifeEmailAlternate()
- {
- if (!empty($this->forlife_alternate)) {
- return $this->forlife_alternate;
- }
- return $this->email;
- }
public function displayName()
{
$list[$i] = $login;
}
}
- return $list;
+ return array_unique($list);
}
return null;
}
private static function stripBadChars($text)
{
- return str_replace(array(' ', "'"), array('-', ''),
+ return str_replace(array(' ', "'", '+'), array('-', '', '_'),
strtolower(stripslashes(replace_accent(trim($text)))));
}
public static function makeHrid($firstname, $lastname, $category)
{
$cat = self::stripBadChars($category);
- if (!cat) {
+ if (!$cat) {
Platal::page()->kill("$category is not a suitable category.");
}
}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
?>