Previous Page
_exception()

Solar_Example_Model_Taggings
_fetchResultSelect()

Next Page
_fixCache()

_fetchResultSelect()

public array _fetchResultSelect ( string $type, array &$params )

Returns a data result and the select used to fetch the data.

Inherited from Solar_Sql_Model.

Parameters

  • (string) $type: The type of fetch to perform: 'all', 'one', etc.
  • (array) &$params: A reference to the params for the select; these will be passed through fixSelectParams(), so the calling code doesn't have to do it twice.

Returns

  • (array) An array of two elements; element 0 is the result data, element 1 is the Solar_Sql_Select object used to fetch the data. Note that if the

Description

Returns a data result and the select used to fetch the data.

If caching is turned on, this will fetch from the cache (if available) and save the result back to the cache (if needed).