Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques statiques | |
static | getList (&$params) |
static | _cleanIntrotext ($introtext) |
static | truncate ($html, $maxLength=0) |
static | groupBy ($list, $fieldName, $direction, $fieldNameToKeep=null) |
static | groupByDate ($list, $type='year', $direction='ksort', $monthYearFormat='F Y', $field='created') |
static | groupByTags ($list, $direction='ksort') |
Helper for mod_articles_category
|
static |
Strips unnecessary tags from the introtext
string | $introtext | introtext to sanitize |
|
static |
Get a list of articles from a specific category
\Joomla\Registry\Registry | &$params | object holding the models parameters |
Références $app, $article, $authorised, $category, $condition, $item, $items, $menu, $mode, $option, $ordering, $params, $view, elseif, ContentHelperRoute\getArticleRoute(), et ContentHelperRoute\getCategoryRoute().
|
static |
Groups items by field
array | $list | list of items |
string | $fieldName | name of field that is used for grouping |
string | $direction | ordering direction |
null | $fieldNameToKeep | field name to keep |
Références $direction, $item, $key, $list, et null.
|
static |
|
static |
Groups items by tags
array | $list | list of items |
string | $direction | ordering direction |
Références $direction, $item, et $list.
|
static |
Method to truncate introtext
The goal is to get the proper length plain text string with as much of the html intact as possible with all tags properly closed.
string | $html | The content of the introtext to be truncated |
integer | $maxLength | The maximum number of characters to render |
Références $html.