mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 15:14:08 +01:00
@@ -27,10 +27,10 @@ namespace SP\Modules\Api\Controllers\Category;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Dtos\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Dtos\ItemSearchDto;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -62,12 +62,12 @@ final class SearchController extends CategoryBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ItemSearchData
|
||||
* @return ItemSearchDto
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
private function buildSearchData(): ItemSearchDto
|
||||
{
|
||||
$itemSearchData = new ItemSearchData();
|
||||
$itemSearchData = new ItemSearchDto();
|
||||
$itemSearchData->setSeachString($this->apiService->getParamString('text'));
|
||||
$itemSearchData->setLimitCount(
|
||||
$this->apiService->getParamInt('count', false, self::SEARCH_COUNT_ITEMS)
|
||||
|
||||
@@ -27,10 +27,10 @@ namespace SP\Modules\Api\Controllers\Client;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Dtos\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Dtos\ItemSearchDto;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -62,12 +62,12 @@ final class SearchController extends ClientBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ItemSearchData
|
||||
* @return ItemSearchDto
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
private function buildSearchData(): ItemSearchDto
|
||||
{
|
||||
$itemSearchData = new ItemSearchData();
|
||||
$itemSearchData = new ItemSearchDto();
|
||||
$itemSearchData->setSeachString($this->apiService->getParamString('text'));
|
||||
$itemSearchData->setLimitCount(
|
||||
$this->apiService->getParamInt('count', false, self::SEARCH_COUNT_ITEMS)
|
||||
|
||||
@@ -27,10 +27,10 @@ namespace SP\Modules\Api\Controllers\Tag;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Dtos\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Dtos\ItemSearchDto;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -61,12 +61,12 @@ final class SearchController extends TagBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ItemSearchData
|
||||
* @return ItemSearchDto
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
private function buildSearchData(): ItemSearchDto
|
||||
{
|
||||
return new ItemSearchData(
|
||||
return new ItemSearchDto(
|
||||
$this->apiService->getParamString('text'),
|
||||
0,
|
||||
$this->apiService->getParamInt('count', false, self::SEARCH_COUNT_ITEMS)
|
||||
|
||||
@@ -27,10 +27,10 @@ namespace SP\Modules\Api\Controllers\UserGroup;
|
||||
|
||||
use Exception;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Api\Dtos\ApiResponse;
|
||||
use SP\Domain\Common\Services\ServiceException;
|
||||
use SP\Domain\Core\Acl\AclActionsInterface;
|
||||
use SP\Domain\Core\Dtos\ItemSearchDto;
|
||||
|
||||
/**
|
||||
* Class SearchController
|
||||
@@ -60,12 +60,12 @@ final class SearchController extends UserGroupBase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ItemSearchData
|
||||
* @return ItemSearchDto
|
||||
* @throws ServiceException
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
private function buildSearchData(): ItemSearchDto
|
||||
{
|
||||
$itemSearchData = new ItemSearchData();
|
||||
$itemSearchData = new ItemSearchDto();
|
||||
$itemSearchData->setSeachString($this->apiService->getParamString('text'));
|
||||
$itemSearchData->setLimitCount($this->apiService->getParamInt('count', false, self::SEARCH_COUNT_ITEMS));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user