PHP 클래스 Indatus\Ranger\ApiDatabase\QueryBuilding\Searcher

상속: extends ApiQueryBuilder
파일 보기 프로젝트 열기: indatus/ranger

보호된 프로퍼티들

프로퍼티 타입 설명
$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