[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_redirect/models/ -> link.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 172 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RedirectModelLink:: (6 methods):
  canDelete()
  canEditState()
  getTable()
  getForm()
  loadFormData()
  activate()


Class: RedirectModelLink  - 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.

canEditState($record)   X-Ref
Method to test whether a record can have its state edited.

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

getTable($type = 'Link', $prefix = 'RedirectTable', $config = array()   X-Ref
Returns a reference to the a Table object, always creating it.

param: type    The table type to instantiate
param: string    A prefix for the table class name. Optional.
param: array    Configuration array for model. Optional.
return: JTable    A database object

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: JForm    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    An array of link ids.
param: string    The new URL to set for the redirect.
param: string    A comment for the redirect links.
return: boolean    Returns true on success, false on failure.



Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1