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 BannersModelBanner
+ Graphe d'héritage de BannersModelBanner:

Fonctions membres publiques

 generateTitle ($categoryId, $table)
 
 getTable ($type='Banner', $prefix='BannersTable', $config=array())
 
 getForm ($data=array(), $loadData=true)
 
 validate ($form, $data, $group=null)
 
 click ()
 
 getUrl ()
 

Champs de données

 $typeAlias = 'com_banners.banner'
 

Fonctions membres protégées

 canDelete ($record)
 
 canEditState ($record)
 
 loadFormData ()
 
 getReorderConditions ($table)
 
 prepareTable ($table)
 
 preprocessForm (JForm $form, $data, $group='content')
 

Attributs protégés

 $text_prefix = 'COM_BANNERS_BANNER'
 
 $batch_copymove = 'category_id'
 
 $batch_commands
 
 $_item
 

Fonctions membres privées

 canCreateCategory ()
 

Description détaillée

Banner model.

Depuis
1.6

Banner model for the Joomla Banners component.

Depuis
1.5

Documentation des fonctions membres

◆ canCreateCategory()

canCreateCategory ( )
private

Is the user allowed to create an on the fly category?

Renvoie
boolean
Depuis
3.6.1

◆ canDelete()

canDelete (   $record)
protected

Method to test whether a record can be deleted.

Paramètres
object$recordA record object.
Renvoie
boolean True if allowed to delete the record. Defaults to the permission set in the component.
Depuis
1.6

◆ canEditState()

canEditState (   $record)
protected

Method to test whether a record can have its state changed.

Paramètres
object$recordA record object.
Renvoie
boolean True if allowed to change the state of the record. Defaults to the permission set in the component.
Depuis
1.6

◆ click()

click ( )

Clicks the URL, incrementing the counter

Renvoie
void
Depuis
1.5

Références $config, $count, $db, $id, $item, $query, et JError\raiseError().

◆ generateTitle()

generateTitle (   $categoryId,
  $table 
)

A method to preprocess generating a new title in order to allow tables with alternative names for alias and title to use the batch move and copy methods

Paramètres
integer$categoryIdThe target category id
JTable$tableThe JTable within which move or copy is taking place
Renvoie
void
Depuis
3.8.12

Références $data.

◆ getForm()

getForm (   $data = array(),
  $loadData = true 
)

Method to get the record form.

Paramètres
array$dataData for the form. [optional]
boolean$loadDataTrue if the form is to load its own data (default case), false if not. [optional]
Renvoie
JForm|boolean A JForm object on success, false on failure
Depuis
1.6

Références $data, et $form.

◆ getReorderConditions()

getReorderConditions (   $table)
protected

A protected method to get a set of ordering conditions.

Paramètres
JTable$tableA record object.
Renvoie
array An array of conditions to add to add to ordering queries.
Depuis
1.6

◆ getTable()

getTable (   $type = 'Banner',
  $prefix = 'BannersTable',
  $config = array() 
)

Returns a JTable object, always creating it.

Paramètres
string$typeThe table type to instantiate. [optional]
string$prefixA prefix for the table class name. [optional]
array$configConfiguration array for model. [optional]
Renvoie
JTable A database object
Depuis
1.6

Références $config, $prefix, et $type.

◆ getUrl()

getUrl ( )

Get the URL for a banner

Renvoie
string
Depuis
1.5

Références $item, et $url.

◆ loadFormData()

loadFormData ( )
protected

Method to get the data that should be injected in the form.

Renvoie
mixed The data for the form.
Depuis
1.6

Références $app, $data, $filters, et null.

◆ prepareTable()

prepareTable (   $table)
protected

Prepare and sanitise the table prior to saving.

Paramètres
JTable$tableA JTable object.
Renvoie
void
Depuis
1.6

Références $date, $db, $query, et $user.

◆ preprocessForm()

preprocessForm ( JForm  $form,
  $data,
  $group = 'content' 
)
protected

Allows preprocessing of the JForm object.

Paramètres
JForm$formThe form object
array$dataThe data to be merged into the form object
string$groupThe plugin group to be executed
Renvoie
void
Depuis
3.6.1

Références $data, et $form.

◆ validate()

validate (   $form,
  $data,
  $group = null 
)

Method to validate the form data.

Paramètres
JForm$formThe form to validate against.
array$dataThe data to validate.
string$groupThe name of the field group to validate.
Renvoie
array|boolean Array of filtered data if valid, false otherwise.
Voir également
JFormRule
JFilterInput
Depuis
3.9.25

Références $data, $form, et validate().

Documentation des champs

◆ $_item

$_item
protected

◆ $batch_commands

$batch_commands
protected
Valeur initiale :
= array(
'client_id' => 'batchClient',
'language_id' => 'batchLanguage'
)

◆ $batch_copymove

$batch_copymove = 'category_id'
protected

◆ $text_prefix

$text_prefix = 'COM_BANNERS_BANNER'
protected

◆ $typeAlias

$typeAlias = 'com_banners.banner'

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