[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/components/com_finder/src/Model/ -> SearchModel.php (summary)

(no description)

Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 464 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SearchModel:: (5 methods):
  getItems()
  getQuery()
  getListQuery()
  getStoreId()
  populateState()


Class: SearchModel  - X-Ref

Search model class for the Finder package.

getItems()   X-Ref
Method to get the results of the query.

return: array  An array of Result objects.

getQuery()   X-Ref
Method to get the query object.

return: Query  A query object.

getListQuery()   X-Ref
Method to build a database query to load the list data.

return: \Joomla\Database\DatabaseQuery  A database query.

getStoreId($id = '', $page = true)   X-Ref
Method to get a store id based on model the configuration state.

This is necessary because the model is used by the component and
different modules that might need different sets of data or different
ordering requirements.

param: string   $id    An identifier string to generate the store id. [optional]
param: boolean  $page  True to store the data paged, false to store all data. [optional]
return: string  A store id.

populateState($ordering = null, $direction = null)   X-Ref
Method to auto-populate the model state.  Calling getState in this method will result in recursion.

param: string  $ordering   An optional ordering field. [optional]
param: string  $direction  An optional direction. [optional]
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer