Banner model.
- Depuis
- 1.6
Banner model for the Joomla Banners component.
- Depuis
- 1.5
◆ canCreateCategory()
Is the user allowed to create an on the fly category?
- Renvoie
- boolean
- Depuis
- 3.6.1
◆ canDelete()
Method to test whether a record can be deleted.
- Paramètres
-
object | $record | A record object. |
- Renvoie
- boolean True if allowed to delete the record. Defaults to the permission set in the component.
- Depuis
- 1.6
◆ canEditState()
Method to test whether a record can have its state changed.
- Paramètres
-
object | $record | A 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()
◆ 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 | $categoryId | The target category id |
JTable | $table | The 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 | $data | Data for the form. [optional] |
boolean | $loadData | True 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 | $table | A 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 | $type | The table type to instantiate. [optional] |
string | $prefix | A prefix for the table class name. [optional] |
array | $config | Configuration array for model. [optional] |
- Renvoie
- JTable A database object
- Depuis
- 1.6
Références $config, $prefix, et $type.
◆ getUrl()
Get the URL for a banner
- Renvoie
- string
- Depuis
- 1.5
Références $item, et $url.
◆ loadFormData()
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()
Prepare and sanitise the table prior to saving.
- Paramètres
-
JTable | $table | A 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 | $form | The form object |
array | $data | The data to be merged into the form object |
string | $group | The 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 | $form | The form to validate against. |
array | $data | The data to validate. |
string | $group | The 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().
◆ $_item
◆ $batch_commands
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 :