ComunicAPI/classes/components/searchUser.php

23 lines
455 B
PHP
Raw Normal View History

2017-05-27 07:41:52 +00:00
<?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());