PHP Класс Indatus\Ranger\ApiDatabase\QueryBuilding\Searcher

Наследование: extends ApiQueryBuilder
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$SEARCH_OPERATOR_KEY This value is popuplated from an app/config/ranger.php in the constructor of this class.
$SEARCH_PROPERTY_KEY This value is popuplated from an app/config/ranger.php in the constructor of this class.
$SEARCH_VALUE_KEY This value is popuplated from an app/config/ranger.php in the constructor of this class.

Открытые методы

Метод Описание
__construct ( Illuminate\Config\Repository $config )
buildQueryFromParameters ( $builder, array $input ) : void Search parameters in the format of:

Описание методов

__construct() публичный Метод

public __construct ( Illuminate\Config\Repository $config )
$config Illuminate\Config\Repository

buildQueryFromParameters() публичный Метод

ie) http://10.0.0.200/v1/users?searchParams[0][property]=name&searchParams[1][operator]=like&searchParams[2][value]=%Ch% The above example will look at the users table for a property called name. Then it will find anything in the name field that's like %Ch%. So if the Charles is a user it will return the user Charles.
public buildQueryFromParameters ( $builder, array $input ) : void
$input array
Результат void

Описание свойств

$SEARCH_OPERATOR_KEY защищенное свойство

This value is popuplated from an app/config/ranger.php in the constructor of this class.
См. также: Searcher::SEARCH_PARAM
protected $SEARCH_OPERATOR_KEY

$SEARCH_PROPERTY_KEY защищенное свойство

This value is popuplated from an app/config/ranger.php in the constructor of this class.
См. также: Searcher::SEARCH_PARAM
protected $SEARCH_PROPERTY_KEY

$SEARCH_VALUE_KEY защищенное свойство

This value is popuplated from an app/config/ranger.php in the constructor of this class.
См. также: Searcher::SEARCH_PARAM
protected $SEARCH_VALUE_KEY