Class ContactModelCategory

Description

Located in /components/com_contact/models/category.php (line 18)

JObject
   |
   --JModel
      |
      --JModelList
         |
         --ContactModelCategory
Variable Summary
mixed $_articles
array $_categories
object $_category
mixed $_children
array $_item
mixed $_parent
mixed $_siblings
Method Summary
ContactModelCategory __construct ([array $config = array()])
object getCategory (int 0)
mixed &getChildren (int 0)
mixed getItems ()
mixed &getLeftSibling ()
string getListQuery ()
mixed getParent (int 0)
void populateState ([ $ordering = null], [ $direction = null])
Variables
mixed $_articles = null (line 27)
  • access: protected
array $_categories = null (line 49)

The list of other newfeed categories.

  • access: protected
object $_category = null (line 41)

The category that applies.

  • access: protected
mixed $_children = null (line 31)
  • access: protected
array $_item = null (line 25)

Category items data

  • access: protected
mixed $_parent = null (line 33)
  • access: protected
mixed $_siblings = null (line 29)
  • access: protected

Inherited Variables

Inherited from JModelList

JModelList::$cache
JModelList::$context
JModelList::$filter_fields
JModelList::$query

Inherited from JModel

JModel::$event_clean_cache
JModel::$name
JModel::$option
JModel::$state
JModel::$_db
JModel::$__state_set

Inherited from JObject

JObject::$_errors
Methods
Constructor __construct (line 58)

Constructor.

ContactModelCategory __construct ([array $config = array()])
  • array $config: An optional associative array of configuration settings.

Redefinition of:
JModelList::__construct()
Constructor.
getCategory (line 250)

Method to get category data for the current category

  • since: 1.5
  • access: public
object getCategory (int 0)
  • int 0: An optional ID
getChildren (line 333)

Get the child categories.

  • return: An array of categories or false if an error occurs.
mixed &getChildren (int 0)
  • int 0: An optional category id. If not supplied, the model state 'category.id' will be used.
getItems (line 84)

Method to get a list of items.

  • return: An array of objects on success, false on failure.
  • access: public
mixed getItems ()

Redefinition of:
JModelList::getItems()
Method to get an array of data items.
getLeftSibling (line 308)

Get the sibling (adjacent) categories.

  • return: An array of categories or false if an error occurs.
mixed &getLeftSibling ()
getListQuery (line 108)

Method to build an SQL query to load the list data.

  • return: An SQL query
  • since: 1.6
  • access: protected
string getListQuery ()

Redefinition of:
JModelList::getListQuery()
Method to get a JDatabaseQuery object for retrieving the data set from a database.
getParent (line 294)

Get the parent category.

  • return: An array of categories or false if an error occurs.
  • access: public
mixed getParent (int 0)
  • int 0: An optional category id. If not supplied, the model state 'category.id' will be used.
getRightSibling (line 317)
void &getRightSibling ()
populateState (line 186)

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

  • since: 1.6
  • access: protected
void populateState ([ $ordering = null], [ $direction = null])
  • $ordering
  • $direction

Redefinition of:
JModelList::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModelList

JModelList::__construct()
JModelList::getItems()
JModelList::getListQuery()
JModelList::getPagination()
JModelList::getStart()
JModelList::getStoreId()
JModelList::getTotal()
JModelList::getUserStateFromRequest()
JModelList::populateState()
JModelList::_getListQuery()

Inherited From JModel

JModel::__construct()
JModel::addIncludePath()
JModel::addTablePath()
JModel::cleanCache()
JModel::getDbo()
JModel::getInstance()
JModel::getName()
JModel::getState()
JModel::getTable()
JModel::populateState()
JModel::setDbo()
JModel::setState()
JModel::_createFileName()
JModel::_createTable()
JModel::_getList()
JModel::_getListCount()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:52:51 -0500 by phpDocumentor 1.4.4