Source for file extension.php
Documentation is available at extension.php
* @package Joomla.Administrator
* @subpackage com_installer
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Extension Manager Abstract Extension Model
* @package Joomla.Administrator
* @subpackage com_installer
* @param array $config An optional associative array of configuration settings.
if (empty($config['filter_fields']))
$config['filter_fields'] =
array(
* @param string $query The query
* @param int $limitstart Offset
* @param int $limit The number of records
protected function _getList($query, $limitstart =
0, $limit =
0)
$ordering =
$this->getState('list.ordering');
$search =
$this->getState('filter.search');
// Replace slashes so preg_match will work
if ($ordering ==
'name' ||
(!empty($search) &&
stripos($search, 'id:') !==
0))
$result =
$db->loadObjectList();
$this->translate($result);
foreach ($result as $i =>
$item)
if ($total <
$limitstart)
return array_slice($result, $limitstart, $limit ?
$limit :
null);
$query->order($db->quoteName($ordering) .
' ' .
$this->getState('list.direction'));
$result =
parent::_getList($query, $limitstart, $limit);
$this->translate($result);
* Translate a list of objects
* @param array &$items The array of objects
* @return array The array of translated objects
private function translate(&$items)
foreach ($items as &$item)
if (strlen($item->manifest_cache))
foreach ($data as $key =>
$value)
$item->author_info =
@$item->authorEmail .
'<br />' .
@$item->authorUrl;
$item->client =
$item->client_id ?
JText::_('JADMINISTRATOR') :
JText::_('JSITE');
$extension =
$item->element;
||
$lang->load("$extension.sys", $source, null, false, true);
$extension =
'files_' .
$item->element;
$lang->load("$extension.sys", JPATH_SITE, null, false, true);
$extension =
'lib_' .
$item->element;
$lang->load("$extension.sys", JPATH_SITE, null, false, true);
$extension =
$item->element;
$source =
$path .
'/modules/' .
$extension;
$lang->load("$extension.sys", $path, null, false, true)
||
$lang->load("$extension.sys", $source, null, false, true);
$extension =
$item->element;
$lang->load("$extension.sys", JPATH_SITE, null, false, true);
$extension =
'plg_' .
$item->folder .
'_' .
$item->element;
$source =
JPATH_PLUGINS .
'/' .
$item->folder .
'/' .
$item->element;
||
$lang->load("$extension.sys", $source, null, false, true);
$extension =
'tpl_' .
$item->element;
$source =
$path .
'/templates/' .
$item->element;
$lang->load("$extension.sys", $path, null, false, true)
||
$lang->load("$extension.sys", $source, null, false, true);
if (!in_array($item->type, array('language', 'template', 'library')))
$item->name =
JText::_($item->name);
settype($item->description, 'string');
if (!in_array($item->type, array('language')))
$item->description =
JText::_($item->description);
Documentation generated on Tue, 19 Nov 2013 15:02:43 +0100 by phpDocumentor 1.4.3