| Server IP : 172.67.191.97 / Your IP : 162.159.115.36 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : dominios2025 ( 1001) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/icaoc/administrator/components/com_sppagebuilder/controllers/ |
Upload File : |
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2024 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
use Joomla\CMS\MVC\Controller\AdminController;
use JoomShaper\SPPageBuilder\DynamicContent\DynamicContent;
//no direct access
defined('_JEXEC') or die('Restricted access');
class SppagebuilderControllerCollections extends AdminController
{
private $dynamicContent = null;
/**
* The constructor method
*
* @since 5.5.0
*/
public function __construct($config = [])
{
if (file_exists(JPATH_ROOT . '/administrator/components/com_sppagebuilder/vendor/autoload.php')) {
require_once JPATH_ROOT . '/administrator/components/com_sppagebuilder/vendor/autoload.php';
}
if (file_exists(JPATH_ROOT . '/administrator/components/com_sppagebuilder/dynamic-content/helper.php')) {
require_once JPATH_ROOT . '/administrator/components/com_sppagebuilder/dynamic-content/helper.php';
}
parent::__construct($config);
$this->dispatchToDynamicContent();
}
/**
* Create dynamic content instance for executing the tasks.
*
* @since 5.5.0
*/
public function dispatchToDynamicContent()
{
$this->dynamicContent = DynamicContent::create($this);
}
/**
* Override the execute method to dispatch the task to the dynamic content.
*
* @since 5.5.0
*/
public function execute($task)
{
return call_user_func_array([$this->dynamicContent, 'dispatch'], [$task, $this->input]);
}
}