| [ 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: | 232 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
plgContentJoomla:: (4 methods):
onContentAfterSave()
onContentBeforeDelete()
_countItemsInCategory()
_countItemsInChildren()
Class: plgContentJoomla - X-Ref
Example Content Plugin| onContentAfterSave($context, &$article, $isNew) X-Ref |
| Example after save content method Article is passed by reference, but after the save, so no changes will be saved. Method is called right after the content is saved param: string The context of the content passed to the plugin (added in 1.6) param: object A JTableContent object param: bool If the content is just about to be created |
| onContentBeforeDelete($context, $data) X-Ref |
| Don't allow categories to be deleted if they contain items or subcategories with items param: string The context for the content passed to the plugin. param: object The data relating to the content that was deleted. return: boolean |
| _countItemsInCategory($table, $catid) X-Ref |
| Get count of items in a category param: string table name of component table (column is catid) param: int id of the category to check return: mixed count of items found or false if db error |
| _countItemsInChildren($table, $catid, $data) X-Ref |
| Get count of items in a category's child categories param: string table name of component table (column is catid) param: int id of the category to check return: mixed count of items found or false if db error |
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |