| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/libraries/kunena/src/Controller/ |
Upload File : |
<?php
/**
* Kunena Component
*
* @package Kunena.Framework
* @subpackage Controller
*
* @copyright Copyright (C) 2008 - @currentyear@ Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
namespace Kunena\Forum\Libraries\Controller;
\defined('_JEXEC') or die();
/**
* Class KunenaControllerApplication
*
* @since Kunena 6.0
*/
class KunenaControllerApplication extends KunenaControllerDisplay
{
/**
* @param mixed $view view
* @param mixed $subview subview
* @param mixed $task task
* @param mixed $input input
* @param mixed $app app
*
* @return mixed|void
*
* @since Kunena 6.0
*/
public static function getInstance($view, $subview, $task, $input, $app)
{
// The word Default is a reserved word in namespace since Php 7.0+, in Kunena we replaced it by Initial
if ($subview == 'default') {
$subviewfixed = 'Initial';
} else {
$subviewfixed = ucfirst($subview);
}
// Define HMVC controller and execute it.
$controllerClassNamespaced = 'Kunena\Forum\Site\Controller\Application\\' . ucfirst($view) . '\\' . $subviewfixed . '\\' . ucfirst($view) . ucfirst($task);
$controllerDefaultNamespaced = 'Kunena\Forum\Libraries\Controller\Application\\' . ucfirst($task);
$controller = class_exists($controllerClassNamespaced)
? new $controllerClassNamespaced($input, $app, $app->getParams('com_kunena'))
: (class_exists($controllerDefaultNamespaced)
? new $controllerDefaultNamespaced($input, $app, $app->getParams('com_kunena'))
: null);
// Execute HMVC if the controller is present.
if ($controller && $controller->exists()) {
return $controller;
}
return;
}
}