PHP 클래스 Bolt\Storage\Query\Handler\SelectQueryHandler

파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
__invoke ( ContentQueryParser $contentQuery ) : QueryResultset
whitelistParameters ( array $queryParams, Repository $repo ) : boolean | array This block is added to deal with the possibility that a requested filter is not an allowable option on the database table. If the requested field filter is not a valid field on this table then we completely skip the query because no results will be expected if the field does not exist. The exception to this is if the field is part of an OR query then we remove the missing field from the stack but still allow the other fields through.

메소드 상세

__invoke() 공개 메소드

public __invoke ( ContentQueryParser $contentQuery ) : QueryResultset
$contentQuery Bolt\Storage\Query\ContentQueryParser
리턴 Bolt\Storage\Query\QueryResultset

whitelistParameters() 공개 메소드

This block is added to deal with the possibility that a requested filter is not an allowable option on the database table. If the requested field filter is not a valid field on this table then we completely skip the query because no results will be expected if the field does not exist. The exception to this is if the field is part of an OR query then we remove the missing field from the stack but still allow the other fields through.
public whitelistParameters ( array $queryParams, Repository $repo ) : boolean | array
$queryParams array
$repo Bolt\Storage\Repository
리턴 boolean | array $cleanParams