mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Updated DB library
This commit is contained in:
23
classes/components/searchUser.php
Normal file
23
classes/components/searchUser.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* Search user controller
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
class searchUser {
|
||||
|
||||
/**
|
||||
* Search for user in the database
|
||||
*
|
||||
* @param Sting $query The query to research on the database
|
||||
* @param Integer $limit The number of results to return on the screen
|
||||
* @return Array the result of the result
|
||||
*/
|
||||
public function search($query, $limit){
|
||||
return array(1, 2);
|
||||
}
|
||||
}
|
||||
|
||||
//Register class
|
||||
Components::register("searchUser", new searchUser());
|
Reference in New Issue
Block a user