Документация по Joomla 1.7

Joomla.Site\ContactModelCategory
components/com_contact/models/category.php at line 19

Class ContactModelCategory

JObject
└─JModel
└─JModelList
└─ContactModelCategory

public class ContactModelCategory
extends JModelList

Subpackage:
com_contact
Since:
11.1

Field Summary
protected mixed

$_articles

protected array

$_categories

The list of other newfeed categories.

protected object

$_category

The category that applies.

protected mixed

$_children

protected array

$_item

Category items data

protected mixed

$_parent

protected mixed

$_siblings

Fields inherited from Joomla.Platform\JModelList
cache, context, filter_fields, query
Fields inherited from Joomla.Platform\JModel
__state_set, _db, event_clean_cache, name, option, state
Fields inherited from Joomla.Platform\JObject
_errors
Constructor Summary
JObject

__construct(array config, array An, mixed properties)

Constructor.

Method Summary
mixed

getItems()

Method to get a list of items.

protected string

getListQuery()

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

protected void

populateState(string ordering, string direction)

Method to auto-populate the model state.

object

getCategory(int An)

Method to get category data for the current category

mixed

getParent(int An)

Get the parent category.

mixed

getLeftSibling()

Get the sibling (adjacent) categories.

void

getRightSibling()

mixed

getChildren(int An)

Get the child categories.

Methods inherited from Joomla.Platform\JModelList
__construct, _getListQuery, getItems, getListQuery, getPagination, getStoreId, getTotal, getUserStateFromRequest, getstart, populateState
Methods inherited from Joomla.Platform\JModel
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState
Methods inherited from Joomla.Platform\JObject
__construct, __toString, def, get, getError, getErrors, getProperties, set, setError, setProperties, toString

Field Detail

components/com_contact/models/category.php at line 28

_articles

protected mixed $_articles = null

components/com_contact/models/category.php at line 50

_categories

protected array $_categories = null

The list of other newfeed categories.


components/com_contact/models/category.php at line 42

_category

protected object $_category = null

The category that applies.


components/com_contact/models/category.php at line 32

_children

protected mixed $_children = null

components/com_contact/models/category.php at line 26

_item

protected array $_item = null

Category items data


components/com_contact/models/category.php at line 34

_parent

protected mixed $_parent = null

components/com_contact/models/category.php at line 30

_siblings

protected mixed $_siblings = null

Constructor Detail

components/com_contact/models/category.php at line 59

__construct

public JObject __construct(array config, array An, mixed properties)

Constructor.

Parameters:
An - optional associative array of configuration settings.
See Also:
JController
Since:
1.6

Method Detail

components/com_contact/models/category.php at line 84

getItems

public mixed getItems()

Method to get a list of items.

Returns:
An array of objects on success, false on failure.
Since:
11.1

components/com_contact/models/category.php at line 108

getListQuery

protected string getListQuery()

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

Returns:
An SQL query
Since:
1.6

components/com_contact/models/category.php at line 191

populateState

protected void populateState(string ordering, string direction)

Method to auto-populate the model state.

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

Since:
1.6
Note:
Calling getState in this method will result in recursion.
Parameters:
ordering - An optional ordering field.
direction - An optional direction (asc|desc).

components/com_contact/models/category.php at line 247

getCategory

public object getCategory(int An)

Method to get category data for the current category

Parameters:
An - optional ID
Since:
1.5

components/com_contact/models/category.php at line 291

getParent

public mixed getParent(int An)

Get the parent category.

Parameters:
An - optional category id. If not supplied, the model state 'category.id' will be used.
Returns:
An array of categories or false if an error occurs.

components/com_contact/models/category.php at line 305

getLeftSibling

public mixed getLeftSibling()

Get the sibling (adjacent) categories.

Returns:
An array of categories or false if an error occurs.

components/com_contact/models/category.php at line 314

getRightSibling

public void getRightSibling()

components/com_contact/models/category.php at line 330

getChildren

public mixed getChildren(int An)

Get the child categories.

Parameters:
An - optional category id. If not supplied, the model state 'category.id' will be used.
Returns:
An array of categories or false if an error occurs.

Документация по Joomla 1.7