| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Source view] [Print] [Project Stats]
(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: | 617 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
TemplatesModelStyle:: (14 methods):
populateState()
delete()
duplicate()
generateNewTitle()
getForm()
loadFormData()
getItem()
getTable()
preprocessForm()
save()
setHome()
unsetHome()
getHelp()
cleanCache()
Class: TemplatesModelStyle - X-Ref
Template style model.| populateState() X-Ref |
| Method to auto-populate the model state. Note. Calling getState in this method will result in recursion. |
| delete(&$pks) X-Ref |
| Method to delete rows. param: array An array of item ids. return: boolean Returns true on success, false on failure. |
| duplicate(&$pks) X-Ref |
| Method to duplicate styles. param: array An array of primary key IDs. return: boolean True if successful. |
| generateNewTitle($category_id, $alias, $title) X-Ref |
| Method to change the title. param: integer $category_id The id of the category. param: string $alias The alias. param: string $title The title. return: string New title. |
| getForm($data = array() X-Ref |
| Method to get the record form. param: array $data An optional array of data for the form to interogate. 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. |
| getItem($pk = null) X-Ref |
| Method to get a single record. param: integer The id of the primary key. return: mixed Object on success, false on failure. |
| getTable($type = 'Style', $prefix = 'TemplatesTable', $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 |
| preprocessForm(JForm $form, $data, $group = 'content') X-Ref |
param: object A form object. param: mixed The data expected for the form. |
| save($data) X-Ref |
| Method to save the form data. param: array The form data. return: boolean True on success. |
| setHome($id = 0) X-Ref |
| Method to set a template style as home. param: int The primary key ID for the style. return: boolean True if successful. |
| unsetHome($id = 0) X-Ref |
| Method to unset a template style as default for a language. param: int The primary key ID for the style. return: boolean True if successful. |
| getHelp() X-Ref |
| Get the necessary data to load an item help screen. return: object An object with key, url, and local properties for loading the item help screen. |
| cleanCache($group = null, $client_id = 0) X-Ref |
| Custom clean cache method |
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |