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

Fonctions membres publiques

 getTable ($type='Link', $prefix='RedirectTable', $config=array())
 
 getForm ($data=array(), $loadData=true)
 
 activate (&$pks, $url, $comment=null)
 
 duplicateUrls (&$pks, $url, $comment=null)
 

Fonctions membres protégées

 canDelete ($record)
 
 loadFormData ()
 

Attributs protégés

 $text_prefix = 'COM_REDIRECT'
 

Description détaillée

Redirect link model.

Depuis
1.6

Documentation des fonctions membres

◆ activate()

activate ( $pks,
  $url,
  $comment = null 
)

Method to activate links.

Paramètres
array&$pksAn array of link ids.
string$urlThe new URL to set for the redirect.
string$commentA 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()

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

◆ 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&$pksAn array of link ids.
string$urlThe new URL to set for the redirect.
string$commentA 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$dataData for the form.
boolean$loadDataTrue 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$typeThe table type to instantiate
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.

◆ 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 $data.

Documentation des champs

◆ $text_prefix

$text_prefix = 'COM_REDIRECT'
protected

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