[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/src/Model/ -> MapsModel.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: 403 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

MapsModel:: (12 methods):
  __construct()
  canDelete()
  canEditState()
  delete()
  getListQuery()
  _getListCount()
  getStoreId()
  getTable()
  populateState()
  publish()
  purge()
  getEmptyStateQuery()


Class: MapsModel  - X-Ref

Maps model for the Finder package.

__construct($config = array()   X-Ref
Constructor.

param: array                $config   An optional associative array of configuration settings.
param: MVCFactoryInterface  $factory  The factory.

canDelete($record)   X-Ref
Method to test whether a record can be deleted.

param: object  $record  A record object.
return: boolean  True if allowed to delete the record. Defaults to the permission for the component.

canEditState($record)   X-Ref
Method to test whether a record can have its state changed.

param: object  $record  A record object.
return: boolean  True if allowed to change the state of the record. Defaults to the permission for the component.

delete(&$pks)   X-Ref
Method to delete one or more records.

param: array  $pks  An array of record primary keys.
return: boolean  True if successful, false if an error occurs.

getListQuery()   X-Ref
Build an SQL query to load the list data.

return: \Joomla\Database\DatabaseQuery

_getListCount($query)   X-Ref
Returns a record count for the query.

param: \Joomla\Database\DatabaseQuery|string
return: integer  Number of rows for query.

getStoreId($id = '')   X-Ref
Method to get a store id based on model 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  A prefix for the store id. [optional]
return: string  A store id.

getTable($type = 'Map', $prefix = 'Administrator', $config = array()   X-Ref
Returns a Table object, always creating it.

param: string  $type    The table type to instantiate. [optional]
param: string  $prefix  A prefix for the table class name. [optional]
param: array   $config  Configuration array for model. [optional]
return: \Joomla\CMS\Table\Table  A database object

populateState($ordering = 'branch_title, a.lft', $direction = 'ASC')   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

publish(&$pks, $value = 1)   X-Ref
Method to change the published state of one or more records.

param: array    $pks    A list of the primary keys to change.
param: integer  $value  The value of the published state. [optional]
return: boolean  True on success.

purge()   X-Ref
Method to purge all maps from the taxonomy.

return: boolean  Returns true on success, false on failure.

getEmptyStateQuery()   X-Ref
Manipulate the query to be used to evaluate if this is an Empty State to provide specific conditions for this extension.

return: DatabaseQuery



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