- md5
- 2e779dfa43ad9dfee574d527d55218b0
- sha1
- ff9419df6411fc7ca9b3dcbbdbfa2952fbbf314d
- sha256
- cd37176c7c80ac981ab5f91ba3343ea1abda5c6c941fa03a4c5de7baa848dde0
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
<?php
/**
* @package Joomla.Installation
* @subpackage Model
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Installation\Model;
use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Base Model for the installation model classes
*
* @since 4.0.0
*/
class BaseInstallationModel extends BaseDatabaseModel
{
/**
* Constructor
*
* @param array $config An array of configuration options (name, state, dbo, table_path, ignore_request).
* @param ?MVCFactoryInterface $factory The factory.
*
* @since 3.0
* @throws \Exception
*/
public function __construct($config = [], ?MVCFactoryInterface $factory = null)
{
// @TODO remove me when the base model is db free
$config['dbo'] = null;
parent::__construct($config, $factory);
}
/**
* Get the current setup options from the session.
*
* @return array An array of options from the session.
*
* @since 3.1
*/
public function getOptions()
{
return Factory::getApplication()->getSession()->get('setup.options', []);
}
}
The same content is in 29 releases, Joomla 6.1.0-alpha3 to 6.2.1-rc1. See them all, or every version of this file.