◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
Constructor.
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
- Depuis
- 1.6
Références $config.
◆ getCategory()
◆ getChildren()
Get the child categories.
- Renvoie
- mixed An array of categories or false if an error occurs.
◆ getItems()
Method to get a list of items.
- Renvoie
- mixed An array of objects on success, false on failure.
Références $i, $item, $items, et $n.
◆ getLeftSibling()
Get the sibling (adjacent) categories.
- Renvoie
- mixed An array of categories or false if an error occurs.
◆ getListQuery()
Method to build an SQL query to load the list data.
- Renvoie
- string An SQL query
- Depuis
- 1.6
TODO: we actually should be doing it but it's wrong this way . ' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug, ' . ' CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(\':\', c.id, c.alias) ELSE c.id END AS catslug ');
Références $db, $groups, $query, $state, et $user.
◆ getParent()
Get the parent category.
- Renvoie
- mixed An array of categories or false if an error occurs.
◆ getRightSibling()
Get the sibling (adjacent) categories.
- Renvoie
- mixed An array of categories or false if an error occurs.
◆ hit()
Increment the hit counter for the category.
- Paramètres
-
integer | $pk | Optional primary key of the category to increment. |
- Renvoie
- boolean True if successful; false otherwise and internal error set.
- Depuis
- 3.2
Références $input.
◆ populateState()
populateState |
( |
|
$ordering = null , |
|
|
|
$direction = null |
|
) |
| |
|
protected |
◆ $_articles
◆ $_categories
◆ $_category
◆ $_children
◆ $_item
◆ $_parent
◆ $_siblings
La documentation de cette classe a été générée à partir du fichier suivant :