__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\MVC\Model;
use Joomla\Registry\Registry;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* A simple state holder class. This class acts for transition from CMSObject to Registry
* and should not be used directly. Instead of, use the Registry class.
*
* @since 5.0.0
*
* @deprecated 7.0 Use the Registry directly
*/
class State extends Registry
{
/**
* Constructor
*
* @param mixed $data The data to bind to the new Registry object.
*
* @since 5.0.0
*/
public function __construct($data = null)
{
parent::__construct($data);
// To speed up things
$this->separator = null;
}
/**
* Get a registry value.
*
* @param string $path Registry path (e.g. joomla.content.showauthor)
* @param mixed $default Optional default value, returned if the internal value is null.
*
* @return mixed Value of entry or null
*
* @since 5.0.0
*/
public function get($path, $default = null)
{
if (isset($this->data->$path) && empty($this->data->$path)) {
@trigger_error(
\sprintf('Instead of an empty value, the default value will be returned in 7.0 in %s::%s.', __METHOD__, __CLASS__),
E_USER_DEPRECATED
);
return $this->data->$path;
}
return parent::get($path, $default);
}
/**
* Returns an associative array of object properties.
*
* @return array The data array
*
* @since 5.0.0
*
* @deprecated 7.0 Use toArray instead
*/
public function getProperties()
{
return $this->toArray();
}
/**
* Proxy for internal data access for the given name.
*
* @param string $name The name of the element
*
* @return mixed The value of the element if set, null otherwise
*
* @since 5.0.0
*
* @deprecated 5.0.0 will be removed in 7.0
*
*/
public function __get($name)
{
@trigger_error(\sprintf('Direct property access will not be supported in 7.0 in %s::%s.', __METHOD__, __CLASS__), E_USER_DEPRECATED);
return $this->get($name);
}
/**
* Proxy for internal data storage for the given name and value.
*
* @param string $name The name of the element
* @param string $value The value
*
* @return void
*
* @since 5.0.0
*
* @deprecated 5.0.0 will be removed in 7.0
*
*/
public function __set($name, $value)
{
@trigger_error(\sprintf('Direct property access will not be supported in 7.0 in %s::%s.', __METHOD__, __CLASS__), E_USER_DEPRECATED);
return $this->set($name, $value);
}
/**
* Proxy for internal data check for a variable with the given key.
*
* @param string $name The name of the element
*
* @return bool Returns if the internal data storage contains a key with the given
*
* @since 5.0.0
*
* @deprecated 5.0.0 will be removed in 7.0
*
*/
public function __isset($name)
{
@trigger_error(\sprintf('Direct property access will not be supported in 7.0 in %s::%s.', __METHOD__, __CLASS__), E_USER_DEPRECATED);
return $this->exists($name);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0775 |
|
|
| AdminModel.php | File | 52.96 KB | 0664 |
|
| BaseDatabaseModel.php | File | 13.73 KB | 0664 |
|
| BaseModel.php | File | 3.99 KB | 0664 |
|
| DatabaseAwareTrait.php | File | 1.96 KB | 0664 |
|
| DatabaseModelInterface.php | File | 654 B | 0664 |
|
| FormBehaviorTrait.php | File | 6.71 KB | 0664 |
|
| FormModel.php | File | 7.62 KB | 0664 |
|
| FormModelInterface.php | File | 836 B | 0664 |
|
| ItemModel.php | File | 1.22 KB | 0664 |
|
| ItemModelInterface.php | File | 668 B | 0664 |
|
| LegacyModelLoaderTrait.php | File | 5.75 KB | 0664 |
|
| ListModel.php | File | 22.49 KB | 0664 |
|
| ListModelInterface.php | File | 649 B | 0664 |
|
| ModelInterface.php | File | 630 B | 0664 |
|
| State.php | File | 3.54 KB | 0664 |
|
| StateBehaviorTrait.php | File | 2.42 KB | 0664 |
|
| StatefulModelInterface.php | File | 1.17 KB | 0664 |
|
| WorkflowBehaviorTrait.php | File | 11.09 KB | 0664 |
|
| WorkflowModelInterface.php | File | 3.35 KB | 0664 |
|