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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe CategoriesControllerCategory
+ Graphe d'héritage de CategoriesControllerCategory:

Fonctions membres publiques

 __construct ($config=array())
 
 save ($key=null, $urlVar=null)
 
 cancel ($key=null)
 

Fonctions membres protégées

 allowAdd ($data=array())
 
 allowEdit ($data=array(), $key='parent_id')
 
 getRedirectToItemAppend ($recordId=null, $urlVar='id')
 
 getRedirectToListAppend ()
 
 postSaveHook (JModelLegacy $model, $validData=array())
 

Attributs protégés

 $extension
 

Description détaillée

The Category Controller

Depuis
1.6

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
Depuis
1.6
Voir également
JControllerLegacy

Références $config, et extension.

Documentation des fonctions membres

◆ allowAdd()

allowAdd (   $data = array())
protected

Method to check if you can add a new record.

Paramètres
array$dataAn array of input data.
Renvoie
boolean
Depuis
1.6

Références $user.

◆ allowEdit()

allowEdit (   $data = array(),
  $key = 'parent_id' 
)
protected

Method to check if you can edit a record.

Paramètres
array$dataAn array of input data.
string$keyThe name of the key for the primary key.
Renvoie
boolean
Depuis
1.6

Références $data, $key, et $user.

◆ cancel()

cancel (   $key = null)

Override cancel method to clear form data for a failed edit action

Paramètres
string$keyThe name of the primary key of the URL variable.
Renvoie
boolean True if access level checks pass, false otherwise.
Depuis
3.10.3

Références $key, extension, null, et option.

◆ getRedirectToItemAppend()

getRedirectToItemAppend (   $recordId = null,
  $urlVar = 'id' 
)
protected

Gets the URL arguments to append to an item redirect.

Paramètres
integer$recordIdThe primary key id for the item.
string$urlVarThe name of the URL variable for the id.
Renvoie
string The arguments to append to the redirect URL.
Depuis
1.6

Références $extension.

◆ getRedirectToListAppend()

getRedirectToListAppend ( )
protected

Gets the URL arguments to append to a list redirect.

Renvoie
string The arguments to append to the redirect URL.
Depuis
1.6

Références $extension.

◆ postSaveHook()

postSaveHook ( JModelLegacy  $model,
  $validData = array() 
)
protected

Function that allows child controller access to model data after the data has been saved.

Paramètres
JModelLegacy$modelThe data model object.
array$validDataThe validated data.
Renvoie
void
Depuis
3.1

Références $item.

◆ save()

save (   $key = null,
  $urlVar = null 
)

Override parent save method to store form data with right key as expected by edit category page

Paramètres
string$keyThe name of the primary key of the URL variable.
string$urlVarThe name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
Renvoie
boolean True if successful, false otherwise.
Depuis
3.10.3

Références $app, $key, extension, et option.

Documentation des champs

◆ $extension

$extension
protected

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