Example #1
0
	public function getRequest()
	{
		$request = parent::getRequest();
		$request->layout = $request->page;

		return $request;
	}
Example #2
0
 /**
  * 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;
 }
Example #3
0
 public function getView()
 {
     $view = parent::getView();
     if ($view) {
         $return = $this->getService('koowa:filter.base64')->sanitize($this->_request->return);
         $view->assign('return', $return);
     }
     return $view;
 }
Example #4
0
    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);
    }
Example #5
0
 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';
 }
Example #6
0
 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);
 }
Example #7
0
	public function getView()
	{
		$view = parent::getView();

		if ($view) {
			$return = KFilter::factory('base64')->sanitize($this->_request->return);
			$view->assign('return', $return);
		}

		return $view;
	}
Example #8
0
 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;
 }
Example #10
0
	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;
	}
Example #11
0
    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;
    }
Example #12
0
 /**
  * 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);
 }
Example #14
0
 protected function _initialize(KConfig $config)
 {
     $config->append(array('behaviors' => array('discoverable'), 'request' => array('view' => 'files')));
     parent::_initialize($config);
 }
Example #15
0
 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;
 }
Example #17
0
 public function getRequest()
 {
     $this->_request->view = 'disqus';
     return parent::getRequest();
 }