[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_redirect/src/Model/ -> LinkModel.php (summary)

(no description)

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 228 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LinkModel:: (5 methods):
  canDelete()
  getForm()
  loadFormData()
  activate()
  duplicateUrls()


Class: LinkModel  - X-Ref

Redirect link model.

canDelete($record)   X-Ref
Method to test whether a record can be deleted.

param: object  $record  A record object.
return: boolean  True if allowed to delete the record. Defaults to the permission set in the component.

getForm($data = array()   X-Ref
Method to get the record form.

param: array    $data      Data for the form.
param: boolean  $loadData  True if the form is to load its own data (default case), false if not.
return: \Joomla\CMS\Form\Form A JForm object on success, false on failure

loadFormData()   X-Ref
Method to get the data that should be injected in the form.

return: mixed  The data for the form.

activate(&$pks, $url, $comment = null)   X-Ref
Method to activate links.

param: array   &$pks     An array of link ids.
param: string  $url      The new URL to set for the redirect.
param: string  $comment  A comment for the redirect links.
return: boolean  Returns true on success, false on failure.

duplicateUrls(&$pks, $url, $comment = null)   X-Ref
Method to batch update URLs to have new redirect urls and comments. Note will publish any unpublished URLs.

param: array   &$pks     An array of link ids.
param: string  $url      The new URL to set for the redirect.
param: string  $comment  A comment for the redirect links.
return: boolean  Returns true on success, false on failure.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer