PHP Класс Search\Model\Filter\Base

Наследование: use trait Cake\Core\InstanceConfigTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_args array Set the data to process on.
$_defaultConfig array Default configuration.
$_manager Search\Manager The parent Search Manager.
$_query Cake\ORM\Query Query object.

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

Метод Описание
__construct ( string $name, Manager $manager, array $config = [] ) Constructor.
args ( array $value = null ) : array | null Get / Set the args.
field ( ) : string | array Get the database field name.
fields ( ) : array Get the database field name(s) as an array.
filterEmpty ( ) : boolean Check if empty value for name in query string should be filtered out.
manager ( ) : Manager Get the manager.
name ( ) : string Get the field name from HTTP GET query string.
present ( ) : boolean Check if the name is present in the arguments from HTTP GET.
process ( ) : void Modify the actual query object and append conditions based on the subclass business rules and type.
query ( Query $value = null ) : void | Query Get / Set the query object.
skip ( ) : boolean Checks whether this finder should be skipped.
valid ( ) : boolean Valid method.
validate ( array $value = null ) : array | null Get / Set the validation rules.
value ( ) : mixed Get the value of the "name" from HTTP GET arguments.

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

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

By default the name of the HTTP GET query argument will be assumed the field name in the database as well.
public __construct ( string $name, Manager $manager, array $config = [] )
$name string Name.
$manager Search\Manager Manager.
$config array Config.

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

Get / Set the args.
public args ( array $value = null ) : array | null
$value array Value.
Результат array | null

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

Get the database field name.
public field ( ) : string | array
Результат string | array

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

Get the database field name(s) as an array.
public fields ( ) : array
Результат array

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

Check if empty value for name in query string should be filtered out.
public filterEmpty ( ) : boolean
Результат boolean

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

Get the manager.
public manager ( ) : Manager
Результат Search\Manager

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

Get the field name from HTTP GET query string.
public name ( ) : string
Результат string

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

Check if the name is present in the arguments from HTTP GET.
public present ( ) : boolean
Результат boolean

process() абстрактный публичный Метод

Modify the actual query object and append conditions based on the subclass business rules and type.
abstract public process ( ) : void
Результат void

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

Get / Set the query object.
public query ( Query $value = null ) : void | Query
$value Cake\ORM\Query Value.
Результат void | Cake\ORM\Query

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

Checks whether this finder should be skipped.
public skip ( ) : boolean
Результат boolean

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

Valid method.
public valid ( ) : boolean
Результат boolean

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

Get / Set the validation rules.
public validate ( array $value = null ) : array | null
$value array Value.
Результат array | null

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

Get the value of the "name" from HTTP GET arguments.
public value ( ) : mixed
Результат mixed

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

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

Set the data to process on.
protected array $_args
Результат array

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

Default configuration.
protected array $_defaultConfig
Результат array

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

The parent Search Manager.
protected Manager,Search $_manager
Результат Search\Manager

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

Query object.
protected Query,Cake\ORM $_query
Результат Cake\ORM\Query