%PDF- %PDF-
| Direktori : /home1/lightco1/www/lightingrepublic.com.au/components/com_default/controllers/ |
| Current File : //home1/lightco1/www/lightingrepublic.com.au/components/com_default/controllers/resource.php |
<?php
/**
* @version $Id: default.php 2721 2010-10-27 00:58:51Z johanjanssens $
* @package Nooku_Components
* @subpackage Default
* @copyright Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved.
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.nooku.org
*/
/**
* Default View Controller
*
* @author Johan Janssens <johan@nooku.org>
* @package Nooku_Components
* @subpackage Default
*/
class ComDefaultControllerResource extends KControllerResource
{
/**
* Display action
*
* If the controller was not dispatched manually load the langauges files
*
* @param KCommandContext A command context object
* @return KDatabaseRow(set) A row(set) object containing the data to display
*/
protected function _actionGet(KCommandContext $context)
{
$this->getService('translator')->getTranslator($this->getIdentifier())->loadLanguageFiles();
return parent::_actionGet($context);
}
/**
* Set a request property
*
* This function translates 'limitstart' to 'offset' for compatibility with Joomla
*
* @param string The property name.
* @param mixed The property value.
*/
public function __set($property, $value)
{
if($property == 'limitstart') {
$property = 'offset';
}
parent::__set($property, $value);
}
}