[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_finder/models/ -> maps.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 376 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FinderModelMaps:: (10 methods):
  __construct()
  canDelete()
  canEditState()
  delete()
  getListQuery()
  getStoreId()
  getTable()
  populateState()
  publish()
  purge()


Class: FinderModelMaps  - X-Ref

Maps model for the Finder package.

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

param: array  $config  An associative array of configuration settings. [optional]

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 be deleted.

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: JDatabaseQuery  A JDatabaseQuery object

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 = 'FinderTable', $config = array()   X-Ref
Returns a JTable 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: JTable  A database object

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

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.



Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1