public static function GetByIDOrName($idOrName) { if (is_numeric($idOrName)) { return Event::GetByID($idOrName); } return Event::GetByName($idOrName); }