Class WeblinksModelCategory

Description

Weblinks Component Weblink Model

  • since: 1.5

Located in /components/com_weblinks/models/category.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --WeblinksModelCategory
Variable Summary
 mixed $_articles
 array $_categories
 object $_category
 mixed $_children
 array $_item
 mixed $_parent
 mixed $_siblings
Method Summary
 WeblinksModelCategory __construct ([array $config = array()])
 object getCategory (integer 0)
 mixed &getChildren (integer 0)
 mixed getItems ()
 mixed &getLeftSibling ()
 string getListQuery ()
 mixed getParent (integer 0)
 boolean hit ([int $pk = 0])
 void populateState ([ $ordering = null], [ $direction = null])
Variables
mixed $_articles = null (line 28)
  • access: protected
array $_categories = null (line 72)

The list of other weblink categories.

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

The category that applies.

  • access: protected
mixed $_children = null (line 32)
  • access: protected
array $_item = null (line 26)

Category items data

  • access: protected
mixed $_parent = null (line 34)
  • access: protected
mixed $_siblings = null (line 30)
  • access: protected

Inherited Variables

Inherited from JModelList

JModelList::$cache
JModelList::$context
JModelList::$filterFormName
JModelList::$filter_fields
JModelList::$htmlFormName
JModelList::$query

Inherited from JModelLegacy

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

Inherited from JObject

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

Constructor.

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

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

Method to get category data for the current category

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

Get the child categories.

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

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 306)

Get the sibling (adjacent) categories.

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

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 292)

Get the parent category

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

Increment the hit counter for the category.

  • return: True if successful; false otherwise and internal error set.
  • since: 3.2
  • access: public
boolean hit ([int $pk = 0])
  • int $pk: Optional primary key of the category to increment.
populateState (line 190)

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::getActiveFilters()
 JModelList::getFilterForm()
 JModelList::getItems()
 JModelList::getListQuery()
 JModelList::getPagination()
 JModelList::getStart()
 JModelList::getStoreId()
 JModelList::getTotal()
 JModelList::getUserStateFromRequest()
 JModelList::loadForm()
 JModelList::loadFormData()
 JModelList::populateState()
 JModelList::preprocessForm()
 JModelList::_getListQuery()

Inherited From JModelLegacy

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

Inherited From JObject

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

Documentation generated on Tue, 19 Nov 2013 14:55:20 +0100 by phpDocumentor 1.4.3