global search

This commit is contained in:
Yuri Kuznetsov
2014-02-05 17:04:36 +02:00
parent 6612910471
commit fa888b015d
14 changed files with 225 additions and 34 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace Espo\Controllers;
use \Espo\Core\Exceptions\Error,
\Espo\Core\Exceptions\Forbidden;
class GlobalSearch extends \Espo\Core\Controllers\Base
{
public function actionSearch($params, $data, $request)
{
$query = $params['query'];
$offset = $request->get('offset');
$maxSize = $request->get('maxSize');
return $this->getService('GlobalSearch')->find($query, $offset);
}
}