public function getRequest() { $request = parent::getRequest(); $request->layout = $request->page; return $request; }
/** * Passes the e_view parameter that Joomla sends in the request for the editor name. * * @see KControllerResource::getView() */ public function getView() { $view = parent::getView(); if ($view) { $view->assign('editor', $this->_request->e_name); } return $view; }
public function getView() { $view = parent::getView(); if ($view) { $return = $this->getService('koowa:filter.base64')->sanitize($this->_request->return); $view->assign('return', $return); } return $view; }
protected function _initialize(KConfig $config) { $config->append(array( 'model' => 'com://site/docman.model.documents', 'behaviors' => array('com://site/docman.controller.behavior.list.persistable') )); parent::_initialize($config); }
protected function _initialize(KConfig $config) { parent::_initialize($config); //Don't dispatch event or allow callbacks $config->dispatch_events = false; $config->enable_callbacks = false; //Force request variables $config->request->view = 'debug'; $config->request->layout = 'default'; }
protected function _actionGet(KCommandContext $context) { //Force the application template KRequest::set('get.tmpl', 'login'); //Set the status $context->status = KHttpResponse::UNAUTHORIZED; //Set the authentciation header //$context->headers = array('WWW-Authenticate', 'Basic Realm="'.KRequest::base().'"'); return parent::_actionGet($context); }
public function getView() { $view = parent::getView(); if ($view) { $return = KFilter::factory('base64')->sanitize($this->_request->return); $view->assign('return', $return); } return $view; }
public function getRequest() { $request = parent::getRequest(); if (KRequest::has('post.paths')) { $paths = KRequest::get('post.paths', 'raw'); if ($paths) { $request->paths = $paths; } } if (!in_array($request->container, array('docman-files', 'docman-icons', 'docman-images'))) { $request->container = 'docman-files'; } return $request; }
public function getRequest() { $request = parent::getRequest(); $request->container = 'fileman-files'; $request->folder = trim($request->folder, '/'); $limit = $request->limit; if (empty($limit)) { $limit = JFactory::getApplication()->getCfg('list_limit'); } if ($limit > 100) { $limit = 100; } $request->limit = $limit; return $request; }
public function getRequest() { static $request; if (is_null($request)) { $request = parent::getRequest(); if (!is_null($request->page)) { $page = explode('-', $request->page); $request->chapter = $page[0]; } } return $request; }
public function getRequest() { $request = parent::getRequest(); if (!isset($request->slug) && isset($request->path)) { $request->slug = array_pop(explode('/', $request->path)); } if ($this->isDispatched()) { $request->document_state = null; $params = JFactory::getApplication()->getMenu()->getActive()->params; $request->sort = $params->get('sort_categories'); } return $request; }
/** * Set the default view * * @return void */ protected function _initialize(KConfig $config) { $config->append(array('view' => 'install')); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('request' => array('layout' => 'default'))); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $config->append(array('behaviors' => array('discoverable'), 'request' => array('view' => 'files'))); parent::_initialize($config); }
public function getRequest() { $this->_request->layout = 'default'; return parent::getRequest(); }
protected function _initialize(KConfig $config) { $config->append(array('model' => 'com://admin/attachments.model.attachments', 'request' => array('view' => 'attachment'))); parent::_initialize($config); $config->view = 'com://admin/attachments.view.' . $config->request->view . '.' . $config->request->format; }
public function getRequest() { $this->_request->view = 'disqus'; return parent::getRequest(); }