프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$__data | array | Stores data for the current pagination set | |
$filterOptions | array | Holds filterOptions for 1.2 Compatibility | |
$paginate | array | Pagination array for component | |
$settings | array | actions: Actions upon which this component will act upon defaults: Holds pagination defaults for controller actions. fieldFormatting: Fields which will replace the regular syntax in where i.e. field = 'value' formOptionsDatetime: Formatting for datetime fields (unused) paginatorParams: Paginator params sent in the URL parsed: Used to tell whether the data options have been parsed redirect: Used to tell whether to redirect so the url includes filter data useTime: Used to tell whether time should be used in the filtering separator: Separator to use between fields in a date input rangeSeparator: Separator to use between dates in a date range url: Url variable used in paginate helper (array('url'=>$url)); whitelist: Array of fields and models for which this component may filter |
메소드 | 설명 | |
---|---|---|
__arrayHasKeys ( array $array, array $keys, boolean $size = null ) : boolean | Checks if all keys are held within an array | |
__buildNamedParams ( array $params ) : string | Builds a named parameter list | |
__checkParams ( object &$controller ) : array | Parses named parameters from the current GET request | |
__filterField ( string $model, string $filteredFieldName, $filteredFieldData, array $modelFieldNames = [] ) : array | Filters an individual field | |
__prepareDatetime ( array $date ) : string | Prepares a date array for a MySQL WHERE clause | |
__prepareFilter ( object &$controller ) | Store sanitized version of filter data | |
initialize ( object &$controller, array $settings = [] ) : void | Initializes FilterComponent for use in the controller | |
processAction ( &$controller ) | ||
processDatetime ( string $fieldname ) : null | string | Builds up a selected datetime for the form helper | |
processFilters ( object &$controller ) : void | Function which will change controller->data array |
public __buildNamedParams ( array $params ) : string | ||
$params | array | An array of parameters to parse |
리턴 | string | Parsed string of named parameters |
public __checkParams ( object &$controller ) : array | ||
$controller | object | Reference to controller |
리턴 | array | Parsed params |
public __prepareDatetime ( array $date ) : string | ||
$date | array | |
리턴 | string |
public __prepareFilter ( object &$controller ) | ||
$controller | object | Reference to controller |
public processFilters ( object &$controller ) : void | ||
$controller | object | Reference to controller |
리턴 | void |
public array $filterOptions | ||
리턴 | array |
public array $settings | ||
리턴 | array |