Tags Component Tag Model
- Depuis
- 3.1
◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
Constructor.
- Paramètres
-
array | $config | An optional associative array of configuration settings. |
- Voir également
- JController
- Depuis
- 3.1
Références $config.
◆ 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
- 3.1
◆ generateNewTitle()
generateNewTitle |
( |
|
$parentId, |
|
|
|
$alias, |
|
|
|
$title |
|
) |
| |
|
protected |
Method to change the title & alias.
- Paramètres
-
integer | $parentId | The id of the parent. |
string | $alias | The alias. |
string | $title | The title. |
- Renvoie
- array Contains the modified title and alias.
- Depuis
- 3.1
Références $title.
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Method to get the row form.
- Paramètres
-
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
- Renvoie
- mixed A JForm object on success, false on failure
- Depuis
- 3.1
Références $form, $jinput, et $user.
◆ getItem() [1/2]
Method to get a tag.
- Paramètres
-
integer | $pk | An optional id of the object to get, otherwise the id from the model state is used. |
- Renvoie
- mixed Tag data object on success, false on failure.
- Depuis
- 3.1
Références $date, et null.
◆ getItem() [2/2]
◆ getItems()
◆ getListQuery()
Method to build an SQL query to load the list data of all items with a given tag.
- Renvoie
- string An SQL query
- Depuis
- 3.1
Références $language, et $query.
◆ getTable()
getTable |
( |
|
$type = 'Tag' , |
|
|
|
$prefix = 'TagsTable' , |
|
|
|
$config = array() |
|
) |
| |
Method to get a table object, load it if necessary.
- Paramètres
-
string | $type | The table name. Optional. |
string | $prefix | The class prefix. Optional. |
array | $config | Configuration array for model. Optional. |
- Renvoie
- JTable A JTable object
- Depuis
- 3.1
Références $config, $prefix, et $type.
◆ hit()
Increment the hit counter.
- Paramètres
-
integer | $pk | Optional primary key of the article to increment. |
- Renvoie
- boolean True if successful; false otherwise and internal error set.
- Depuis
- 3.2
Références $input, et JError\raiseError().
◆ loadFormData()
Method to get the data that should be injected in the form.
- Renvoie
- mixed The data for the form.
- Depuis
- 3.1
Références $data.
◆ populateState() [1/2]
Auto-populate the model state.
- Note
- Calling getState in this method will result in recursion.
- Renvoie
- void
- Depuis
- 3.1
Références $app, et $params.
◆ populateState() [2/2]
populateState |
( |
|
$ordering = 'c.core_title' , |
|
|
|
$direction = 'ASC' |
|
) |
| |
|
protected |
◆ rebuild()
Method rebuild the entire nested set tree.
- Renvoie
- boolean False on failure or error, true otherwise.
- Depuis
- 3.1
◆ save()
◆ saveorder()
saveorder |
( |
|
$idArray = null , |
|
|
|
$lftArray = null |
|
) |
| |
Method to save the reordered nested set tree. First we save the new order values in the lft values of the changed ids. Then we invoke the table rebuild to implement the new ordering.
- Paramètres
-
array | $idArray | An array of primary key ids. |
integer | $lftArray | The lft value |
- Renvoie
- boolean False on failure or error, True otherwise
- Depuis
- 3.1
◆ $batch_commands
Valeur initiale := array(
'assetgroup_id' => 'batchAccess',
'language_id' => 'batchLanguage',
)
◆ $items
◆ $tag
◆ $text_prefix
$text_prefix = 'COM_TAGS' |
|
protected |
◆ $typeAlias
$typeAlias = 'com_tags.tag' |
La documentation de cette classe a été générée à partir du fichier suivant :