Redirect link model.
- Depuis
- 1.6
◆ activate()
activate |
( |
& |
$pks, |
|
|
|
$url, |
|
|
|
$comment = null |
|
) |
| |
Method to activate links.
- Paramètres
-
array | &$pks | An array of link ids. |
string | $url | The new URL to set for the redirect. |
string | $comment | A comment for the redirect links. |
- Renvoie
- boolean Returns true on success, false on failure.
- Depuis
- 1.6
Références $db, $query, $url, $user, et ArrayHelper\toInteger().
◆ 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
◆ duplicateUrls()
duplicateUrls |
( |
& |
$pks, |
|
|
|
$url, |
|
|
|
$comment = null |
|
) |
| |
Method to batch update URLs to have new redirect urls and comments. Note will publish any unpublished URLs.
- Paramètres
-
array | &$pks | An array of link ids. |
string | $url | The new URL to set for the redirect. |
string | $comment | A comment for the redirect links. |
- Renvoie
- boolean Returns true on success, false on failure.
- Depuis
- 3.6.0
Références $date, $db, $query, $url, $user, et ArrayHelper\toInteger().
◆ getForm()
getForm |
( |
|
$data = array() , |
|
|
|
$loadData = true |
|
) |
| |
Method to get the record 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
- JForm A JForm object on success, false on failure
- Depuis
- 1.6
Références $data, et $form.
◆ getTable()
getTable |
( |
|
$type = 'Link' , |
|
|
|
$prefix = 'RedirectTable' , |
|
|
|
$config = array() |
|
) |
| |
Returns a reference to the a Table object, always creating it.
- Paramètres
-
string | $type | The table type to instantiate |
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.
◆ 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 $data.
◆ $text_prefix
$text_prefix = 'COM_REDIRECT' |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :