Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe CategoryModel
+ Graphe d'héritage de CategoryModel:

Fonctions membres publiques

 __construct ($config=array())
 
 getItems ()
 
 getCategory ()
 
 getParent ()
 
getLeftSibling ()
 
getRightSibling ()
 
getChildren ()
 
 hit ($pk=0)
 
- Fonctions membres publiques hérités de ListModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 getIsEmptyState ()
 
 getActiveFilters ()
 
 getItems ()
 
 getPagination ()
 
 getTotal ()
 
 getStart ()
 
 getFilterForm ($data=array(), $loadData=true)
 
 getUserStateFromRequest ($key, $request, $default=null, $type='none', $resetPage=true)
 
- Fonctions membres publiques hérités de BaseDatabaseModel
 __construct ($config=array(), MVCFactoryInterface $factory=null)
 
 getTable ($name='', $prefix='', $options=array())
 
 isCheckedOut ($item)
 
 getDbo ()
 
 setDbo (DatabaseInterface $db=null)
 
 __get ($name)
 
- Fonctions membres publiques hérités de BaseModel
 __construct ($config=array())
 
 getName ()
 
- Fonctions membres publiques hérités de CMSObject
 __construct ($properties=null)
 
 __toString ()
 
 def ($property, $default=null)
 
 get ($property, $default=null)
 
 getProperties ($public=true)
 
 getError ($i=null, $toString=true)
 
 getErrors ()
 
 set ($property, $value=null)
 
 setProperties ($properties)
 
 setError ($error)
 
- Fonctions membres publiques hérités de StatefulModelInterface
 getState ($property=null, $default=null)
 
 setState ($property, $value=null)
 
- Fonctions membres publiques hérités de DispatcherAwareInterface
 setDispatcher (DispatcherInterface $dispatcher)
 
- Fonctions membres publiques hérités de CurrentUserInterface
 setCurrentUser (User $currentUser)
 
- Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface
 setCacheControllerFactory (CacheControllerFactoryInterface $factory)
 
- Fonctions membres publiques hérités de DatabaseAwareInterface
 setDatabase (DatabaseInterface $db)
 
- Fonctions membres publiques hérités de FormFactoryAwareInterface
 setFormFactory (FormFactoryInterface $factory)
 

Fonctions membres protégées

 populateState ($ordering=null, $direction=null)
 
- Fonctions membres protégées hérités de ListModel
 getEmptyStateQuery ()
 
 _getListQuery ()
 
 getListQuery ()
 
 getStoreId ($id='')
 
 loadFormData ()
 
 populateState ($ordering=null, $direction=null)
 
 refineSearchStringToRegex ($search, $regexDelimiter='/')
 
- Fonctions membres protégées hérités de BaseDatabaseModel
 _getList ($query, $limitstart=0, $limit=0)
 
 _getListCount ($query)
 
 _createTable ($name, $prefix='Table', $config=array())
 
 bootComponent ($component)
 
 dispatchEvent (EventInterface $event)
 

Attributs protégés

 $_item
 
 $_articles
 
 $_siblings
 
 $_children
 
 $_parent
 
 $_category
 
 $_categories
 
- Attributs protégés hérités de ListModel
 $cache = array()
 
 $context = null
 
 $filter_fields = array()
 
 $query = array()
 
 $lastQueryStoreId = null
 
 $filterFormName = null
 
 $htmlFormName = 'adminForm'
 
 $filterBlacklist = array()
 
 $filterForbiddenList = array()
 
 $listBlacklist = array('select')
 
 $listForbiddenList = array('select')
 
- Attributs protégés hérités de BaseDatabaseModel
 $option = null
 
 $event_clean_cache = null
 
- Attributs protégés hérités de BaseModel
 $name
 
- Attributs protégés hérités de CMSObject
 $_errors = array()
 

Fonctions membres privées

 getSlugColumn ($query, $id, $alias)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de BaseModel
static addIncludePath ($path='', $prefix='')
 
- Attributs protégés statiques hérités de BaseModel
static $paths
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
Depuis
1.6

Références $config, et Symfony\Contracts\Service\__construct().

Documentation des fonctions membres

◆ getCategory()

getCategory ( )

Method to get category data for the current category

Renvoie
object The category object
Depuis
1.5

Références $active, $app, $menu, $options, $params, Factory\getApplication(), Categories\getInstance(), et Joomla\CMS\MVC\Model\getState().

◆ getChildren()

& getChildren ( )

Get the child categories.

Renvoie
mixed An array of categories or false if an error occurs.

Références Joomla\CMS\Tree\$_children, et Joomla\CMS\Categories\getCategory().

◆ getItems()

getItems ( )

Method to get a list of items.

Renvoie
mixed An array of objects on success, false on failure.

Implémente ListModelInterface.

Références $id, $item, $itemIds, $items, et Joomla\CMS\MVC\Model\getState().

◆ getLeftSibling()

& getLeftSibling ( )

Get the sibling (adjacent) categories.

Renvoie
mixed An array of categories or false if an error occurs.

Références Joomla\CMS\Categories\getCategory().

◆ getParent()

getParent ( )

Get the parent category.

Renvoie
mixed An array of categories or false if an error occurs.

Références Joomla\CMS\Categories\getCategory().

◆ getRightSibling()

& getRightSibling ( )

Get the sibling (adjacent) categories.

Renvoie
mixed An array of categories or false if an error occurs.

Références Joomla\CMS\Categories\getCategory().

◆ getSlugColumn()

getSlugColumn (   $query,
  $id,
  $alias 
)
private

Generate column expression for slug or catslug.

Paramètres
\Joomla\Database\DatabaseQuery$queryCurrent query instance.
string$idColumn id name.
string$aliasColumn alias name.
Renvoie
string
Depuis
4.0.0

Références $id, et $query.

◆ hit()

hit (   $pk = 0)

Increment the hit counter for the category.

Paramètres
integer$pkOptional 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, Factory\getApplication(), Table\getInstance(), et Joomla\CMS\MVC\Model\getState().

◆ populateState()

populateState (   $ordering = null,
  $direction = null 
)
protected

Method to auto-populate the model state.

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

Paramètres
string$orderingAn optional ordering field.
string$directionAn optional direction (asc|desc).
Renvoie
void
Depuis
1.6

Références $app, $format, $id, $itemid, $limit, $listOrder, $menu, $params, $user, Factory\getApplication(), ComponentHelper\getParams(), Factory\getUser(), Multilanguage\isEnabled(), et Joomla\CMS\MVC\Model\setState().

Documentation des champs

◆ $_articles

$_articles
protected

◆ $_categories

$_categories
protected

◆ $_category

$_category
protected

◆ $_children

$_children
protected

◆ $_item

$_item
protected

◆ $_parent

$_parent
protected

◆ $_siblings

$_siblings
protected

La documentation de cette classe a été générée à partir du fichier suivant :