PHP Class Indatus\Ranger\ApiDatabase\QueryBuilding\Searcher

Inheritance: extends ApiQueryBuilder
Datei anzeigen Open project: indatus/ranger

Protected Properties

Property Type Description
$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.

Public Methods

Method Description
__construct ( Illuminate\Config\Repository $config )
buildQueryFromParameters ( $builder, array $input ) : void Search parameters in the format of:

Method Details

__construct() public method

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

buildQueryFromParameters() public method

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
return void

Property Details

$SEARCH_OPERATOR_KEY protected_oe property

This value is popuplated from an app/config/ranger.php in the constructor of this class.
See also: Searcher::SEARCH_PARAM
protected $SEARCH_OPERATOR_KEY

$SEARCH_PROPERTY_KEY protected_oe property

This value is popuplated from an app/config/ranger.php in the constructor of this class.
See also: Searcher::SEARCH_PARAM
protected $SEARCH_PROPERTY_KEY

$SEARCH_VALUE_KEY protected_oe property

This value is popuplated from an app/config/ranger.php in the constructor of this class.
See also: Searcher::SEARCH_PARAM
protected $SEARCH_VALUE_KEY