/**
  * Constructor.
  *
  * @since   3.1
  */
 public function __construct()
 {
     parent::__construct();
     // Overrides application config and set the configuration.php file so tokens and database works
     JFactory::$config = null;
     JFactory::getConfig(JPATH_SITE . '/configuration.php');
 }
 /**
  * Constructor.
  *
  * @since   3.2
  */
 public function __construct()
 {
     parent::__construct();
     // Overrides application config and set the configuration.php file so the send function will work
     JFactory::$config = null;
     JFactory::getConfig(JPATH_SITE . '/configuration.php');
 }
 /**
  * Tests the unserialize method for an expected exception.
  *
  * @return  void
  *
  * @since   12.1
  * @expectedException  UnexpectedValueException
  */
 public function testUnserialise_exception()
 {
     $this->_instance->unserialize('s:7:"default";');
 }
Exemplo n.º 4
0
 /**
  * Instantiate the controller
  *
  * @param   \JInput            $input  The input object.
  * @param   \JApplicationBase  $app    The application object.
  *
  * @since   2.0
  */
 public function __construct(\JInput $input = null, \JApplicationBase $app = null)
 {
     parent::__construct($input, $app);
     // Set the context for the controller
     $this->context = 'com_patchtester.' . $this->getInput()->getCmd('view', $this->defaultView);
 }
Exemplo n.º 5
0
 /**
  * Instantiate the controller.
  *
  * @param   \JInput           $input   The input object.
  * @param   \JApplicationCms  $app     The application object.
  * @param   array             $config  The config object.
  */
 public function __construct(JInput $input = null, JApplicationCms $app = null, $config = array())
 {
     if (!$this->prefix && !empty($config['prefix'])) {
         $this->prefix = $config['prefix'];
     }
     if (!$this->option && !empty($config['option'])) {
         $this->option = $config['option'];
     }
     if (!$this->name && !empty($config['name'])) {
         $this->name = $config['name'];
     }
     if (!$this->task && !empty($config['task'])) {
         $this->task = $config['task'];
     }
     parent::__construct($input, $app);
 }
Exemplo n.º 6
0
 /**
  * Instantiate the controller
  *
  * @param   \JInput            $input  The input object.
  * @param   \JApplicationBase  $app    The application object.
  *
  * @since   2.0
  */
 public function __construct(\JInput $input = null, \JApplicationBase $app = null)
 {
     parent::__construct($input, $app);
     // Set the context for the controller
     $this->context = \JApplicationHelper::getComponentName() . '.' . $this->getInput()->getCmd('view', $this->defaultView);
 }