Updated DB library

This commit is contained in:
Pierre
2017-05-27 09:41:52 +02:00
parent 6c35764f48
commit 5e03191c3d
3 changed files with 42 additions and 5 deletions

View 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());