kompass/modules/Gruppen/Requests/SearchMemberRequest.php

15 lines
371 B
PHP
Raw Normal View History

<?php
use Bdp\Modules\Gruppen\Controllers\MainController;
class SearchMemberRequest
{
public static function listByName(string $name) : array
{
global $dbHandler;
return $dbHandler->readSqlFromDb( MainController::KOMPASS_STAMMESGRUPPEN_TEILIS,
'SELECT * FROM %tablename% WHERE CONCAT(`vorname`, " " , `nachname`) LIKE "%' . $name . '%"');
}
}