/** * Instantiate the controller. * * @param \JInput $input The input object. * @param \JApplicationCms $app The application object. * @param array $config Additional config. * * @throws \Exception */ public function __construct(\JInput $input = null, \JApplicationCms $app = null, $config = array()) { parent::__construct($input, $app, $config); $this->context = $this->option . '.' . $this->task; $this->textPrefix = strtoupper($this->option); }
/** * Instantiate the controller. * * @param \JInput $input The input object. * @param \JApplicationCms $app The application object. * @param array $config Additional config. * * @throws \Exception */ public function __construct(\JInput $input = null, \JApplicationCms $app = null, $config = array()) { parent::__construct($input, $app, $config); $this->context = $this->context ?: ContextHelper::fromController($this); $this->textPrefix = strtoupper($this->option); }