I hereby claim:
- I am mbabker on github.
- I am mbabker (https://keybase.io/mbabker) on keybase.
- I have a public key whose fingerprint is EED9 6707 E398 8018 9C02 A87D 00E1 51E3 933D B00B
To claim this, I am signing this object:
/** | |
* 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) |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Method to get a controller object. | |
* | |
* @param string $task The task being executed | |
* | |
* @return JController | |
* | |
* @since x.y | |
* @throws RuntimeException | |
*/ |
// 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 |
/* | |
* 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) |
<?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 |
/** | |
* Method to run batch operations. | |
* | |
* @return void | |
* @since 1.7 | |
*/ | |
public function batch($model) | |
{ | |
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN')); |
public static function getInstance($options = array()) | |
{ | |
// Sanitize the database connector options. | |
$options['driver'] = (isset($options['driver'])) ? preg_replace('/[^A-Z0-9_\.-]/i', '', $options['driver']) : 'mysqli'; | |
$options['database'] = (isset($options['database'])) ? $options['database'] : null; | |
$options['select'] = (isset($options['select'])) ? $options['select'] : true; | |
// If the selected driver is `mysql` and we are on PHP 7 or greater, switch to the `mysqli` driver. | |
if ($options['driver'] === 'mysql' && PHP_MAJOR_VERSION >= 7) | |
{ |
<?php | |
/** | |
* Podcast Manager Batch Save Script | |
* | |
* @copyright Copyright (C) 2014 Michael Babker. All rights reserved. | |
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later | |
*/ | |
// Set flag that this is a parent file. | |
const _JEXEC = 1; |