This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Renders an active item in the pagination block | |
* | |
* @param JPaginationObject $item The current pagination object | |
* | |
* @return string HTML markup for active item | |
* | |
* @since 3.0 | |
*/ | |
function pagination_item_active(&$item) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Method to get a controller object. | |
* | |
* @param string $task The task being executed | |
* | |
* @return JController | |
* | |
* @since x.y | |
* @throws RuntimeException | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the database object | |
$db = JFactory::getDbo(); | |
// JTableCategory is autoloaded in J! 3.0, so... | |
if (version_compare(JVERSION, '3.0', 'lt')) | |
{ | |
JTable::addIncludePath(JPATH_PLATFORM . 'joomla/database/table'); | |
} | |
// Initialize a new category |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up our JRegistry object for the HTTP connector | |
$options = new JRegistry; | |
// Set the user agent | |
$options->set('userAgent', 'JInstallation/3.0'); | |
// Use a 120 second timeout | |
$options->set('timeout', 120); | |
// Instantiate our JHttp object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Create an HTML Layout Override for components/com_ars/views/latest/tmpl/category.php | |
* and insert the below snippet just below the $released = new JDate... line | |
* A live example of this can be found on http://www.babdev.com/extensions/latest | |
*/ | |
// Additons to get all supported versions per release (for when multiple items support different versions) | |
$i = 0; | |
$versions = array(); | |
foreach ($cat->release->files as $environment) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('_JEXEC', 1); | |
require_once __DIR__ . '/libraries/import.legacy.php'; | |
/** | |
* Simple class to retreive some tweets from Twitter and display using the Joomla! Platform CLI | |
* | |
* Note: This file must be placed at the root of your Joomla! Platform checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Method to run batch operations. | |
* | |
* @return void | |
* @since 1.7 | |
*/ | |
public function batch($model) | |
{ | |
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN')); |
NewerOlder