Previous Page
fetchValue()

Solar_Model_Taggings
fixSelectParams()

Next Page
free()

fixSelectParams()

public array fixSelectParams ( array $params )

"Cleans up" SELECT clause parameters.

Inherited from Solar_Sql_Model.

Parameters

  • (array) $params: The parameters for the SELECT clauses.

Returns

  • (array) A normalized set of clause params.

Description

"Cleans up" SELECT clause parameters.

eager
(string|array) Eager-fetch records from these related models.
distinct
(bool) Use DISTINCT?
cols
(string|array) Return only these columns.
where
(string|array) A Solar_Sql_Select::multiWhere() value parameter to restrict which records are returned.
group
(string|array) GROUP BY these columns.
having
(string|array) HAVING these column values.
order
(string|array) ORDER BY these columns.
paging
(int) Return this many records per page.
page
(int) Return only records from this page-number.
limit
(int|array) Limit to a count of this many records (when an integer), or limit by count and offset (when an array). When limit is non- empty, the page and paging params are ignored.
bind
(array) Key-value pairs to bind into the query.
count_pages
(bool) Perform a second query for count and pages.
cache
(bool) Use the cache?
cache_key
(bool) An explicit cache key to use; otherwise, defaults to the serialized SELECT params.