File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/Event.zip
Back
PK �.]��� � Table/AfterMoveEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use stdClass; /** * Event class for JTable's onAfterMove event * * @since 4.0.0 */ class AfterMoveEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * row stdClass|null The primary keys and ordering value for the selection. * delta int The direction and magnitude to move the row in the ordering sequence. * where string WHERE clause which was used for limiting the selection of rows to compact the ordering values. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('row', $arguments)) { throw new BadMethodCallException("Argument 'row' is required for event $name"); } if (!\array_key_exists('delta', $arguments)) { throw new BadMethodCallException("Argument 'delta' is required for event $name"); } if (!\array_key_exists('where', $arguments)) { throw new BadMethodCallException("Argument 'ignore' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the rows argument * * @param stdClass|null $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setRow($value) { if (!($value instanceof stdClass) && !empty($value)) { throw new BadMethodCallException("Argument 'row' of event {$this->name} must be an stdClass object or null"); } return $value; } /** * Setter for the delta argument * * @param int $value The value to set * * @return integer * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setDelta($value) { if (!is_numeric($value)) { throw new BadMethodCallException("Argument 'delta' of event {$this->name} must be an integer"); } return (int) $value; } /** * Setter for the where argument * * @param string|null $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setWhere($value) { if (!empty($value) && !\is_string($value)) { throw new BadMethodCallException("Argument 'where' of event {$this->name} must be empty or string"); } return $value; } } PK �.]ev�b b Table/BeforeCheckoutEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforeCheckout event * * @since 4.0.0 */ class BeforeCheckoutEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * userId integer The Id of the user checking out the row. * pk mixed An optional primary key value to check out. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('userId', $arguments)) { throw new BadMethodCallException("Argument 'userId' is required for event $name"); } if (!\array_key_exists('pk', $arguments)) { throw new BadMethodCallException("Argument 'pk' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the userId argument * * @param mixed $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setUserId($value) { if (!is_numeric($value) || empty($value)) { throw new BadMethodCallException("Argument 'userId' of event {$this->name} must be an integer"); } return (int) $value; } } PK �.]%-~�� � Table/BeforeHitEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onBeforeHit event * * @since 4.0.0 */ class BeforeHitEvent extends BeforeCheckinEvent { } PK �.]J��&O O Table/SetNewTagsEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onSetNewTags event * * @since 4.0.0 * @todo Only used in JModelAdmin::batchTag since we can't use JTable::save as we don't want the data to be saved. Maybe trigger onBeforeStore? */ class SetNewTagsEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * newTags int[] New tags to be added to or replace current tags for an item * replaceTags bool Replace tags (true) or add them (false) * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('newTags', $arguments)) { throw new BadMethodCallException("Argument 'newTags' is required for event $name"); } if (!\array_key_exists('replaceTags', $arguments)) { throw new BadMethodCallException("Argument 'replaceTags' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the replaceTags attribute * * @param mixed $value The value to set * * @return boolean Normalised value */ protected function setReplaceTags($value) { return $value ? true : false; } } PK �.] Table/pwnkitnu ȯ�� PK �.]��1� � Table/BeforeCheckinEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforeCheckin event * * @since 4.0.0 */ class BeforeCheckinEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * pk mixed An optional primary key value to check out. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('pk', $arguments)) { throw new BadMethodCallException("Argument 'pk' is required for event $name"); } parent::__construct($name, $arguments); } } PK �.]+k㽄 � Table/AfterLoadEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onAfterLoad event * * @since 4.0.0 */ class AfterLoadEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * result boolean Did the table record load succeed? * row null|array The values loaded from the database, null if it failed * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('result', $arguments)) { throw new BadMethodCallException("Argument 'result' is required for event $name"); } if (!\array_key_exists('row', $arguments)) { throw new BadMethodCallException("Argument 'row' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the result argument * * @param boolean $value The value to set * * @return boolean * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setResult($value) { return $value ? true : false; } /** * Setter for the row argument * * @param array|null $value The value to set * * @return array|null * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setRow($value) { if (!\is_null($value) && !\is_array($value)) { throw new BadMethodCallException("Argument 'row' of event {$this->name} is not of the expected type"); } return $value; } } PK �.]w��i i Table/AfterReorderEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onAfterReorder event * * @since 4.0.0 */ class AfterReorderEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * rows stdClass[]|null The primary keys and ordering values for the selection. * where string WHERE clause which was used for limiting the selection of rows to compact the ordering values. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('where', $arguments)) { throw new BadMethodCallException("Argument 'ignore' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the where argument * * @param array|string|null $value A string or array of where conditions. * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setWhere($value) { if (!empty($value) && !\is_string($value) && !\is_array($value)) { throw new BadMethodCallException("Argument 'where' of event {$this->name} must be empty or string or array of strings"); } return $value; } } PK �.]�5z � � Table/AfterPublishEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onAfterPublish event * * @since 4.0.0 */ class AfterPublishEvent extends BeforePublishEvent { } PK �.] Table/.mad-rootnu �[��� PK �.]y��� � Table/AfterBindEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onAfterBind event * * @since 4.0.0 */ class AfterBindEvent extends BeforeBindEvent { } PK �.] �k�� � Table/AfterCheckoutEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onAfterCheckout event * * @since 4.0.0 */ class AfterCheckoutEvent extends BeforeCheckoutEvent { } PK �.]�S�� � Table/BeforeDeleteEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforeDelete event * * @since 4.0.0 */ class BeforeDeleteEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * pk An optional primary key value to delete. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('pk', $arguments)) { throw new BadMethodCallException("Argument 'pk' is required for event $name"); } parent::__construct($name, $arguments); } } PK �.]'�� � Table/BeforeMoveEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\Database\DatabaseQuery; /** * Event class for JTable's onBeforeMove event * * @since 4.0.0 */ class BeforeMoveEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * query DatabaseQuery The query to get the primary keys and ordering values for the selection. * delta int The direction and magnitude to move the row in the ordering sequence. * where string WHERE clause to use for limiting the selection of rows to compact the ordering values. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('query', $arguments)) { throw new BadMethodCallException("Argument 'query' is required for event $name"); } if (!\array_key_exists('delta', $arguments)) { throw new BadMethodCallException("Argument 'delta' is required for event $name"); } if (!\array_key_exists('where', $arguments)) { throw new BadMethodCallException("Argument 'where' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the query argument * * @param DatabaseQuery $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setQuery($value) { if (!($value instanceof DatabaseQuery)) { throw new BadMethodCallException("Argument 'query' of event {$this->name} must be of DatabaseQuery type"); } return $value; } /** * Setter for the delta argument * * @param int $value The value to set * * @return integer * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setDelta($value) { if (!is_numeric($value)) { throw new BadMethodCallException("Argument 'delta' of event {$this->name} must be an integer"); } return (int) $value; } /** * Setter for the where argument * * @param string|null $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setWhere($value) { if (!empty($value) && !\is_string($value)) { throw new BadMethodCallException("Argument 'where' of event {$this->name} must be empty or string"); } return $value; } } PK �.]��j�� � Table/AbstractEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\CMS\Event\AbstractImmutableEvent; use JTableInterface; /** * Event class for JTable's events * * @since 4.0.0 */ abstract class AbstractEvent extends AbstractImmutableEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 1.0 */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('subject', $arguments)) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is required but has not been provided"); } parent::__construct($name, $arguments); } /** * Setter for the subject argument * * @param JTableInterface $value The value to set * * @return JTableInterface * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setSubject($value) { if (!\is_object($value) || !($value instanceof JTableInterface)) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is not of the expected type"); } return $value; } } PK �.]<^�� � Table/BeforeReorderEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\Database\DatabaseQuery; /** * Event class for JTable's onBeforeReorder event * * @since 4.0.0 */ class BeforeReorderEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * query DatabaseQuery The query to get the primary keys and ordering values for the selection. * where string WHERE clause to use for limiting the selection of rows to compact the ordering values. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('query', $arguments)) { throw new BadMethodCallException("Argument 'query' is required for event $name"); } if (!\array_key_exists('where', $arguments)) { throw new BadMethodCallException("Argument 'where' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the query argument * * @param DatabaseQuery $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setQuery($value) { if (!($value instanceof DatabaseQuery)) { throw new BadMethodCallException("Argument 'query' of event {$this->name} must be of DatabaseQuery type"); } return $value; } /** * Setter for the where argument * * @param array|string|null $value A string or array of where conditions. * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setWhere($value) { if (!empty($value) && !\is_string($value) && !\is_array($value)) { throw new BadMethodCallException("Argument 'where' of event {$this->name} must be empty or string or array of strings"); } return $value; } } PK �.],G s s Table/BeforePublishEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforePublish event * * @since 4.0.0 */ class BeforePublishEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * pks mixed An optional array of primary key values to update. * state int The publishing state. eg. [0 = unpublished, 1 = published] * userId int The user id of the user performing the operation. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('pks', $arguments)) { throw new BadMethodCallException("Argument 'pks' is required for event $name"); } if (!\array_key_exists('state', $arguments)) { throw new BadMethodCallException("Argument 'state' is required for event $name"); } if (!\array_key_exists('userId', $arguments)) { throw new BadMethodCallException("Argument 'userId' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the pks argument * * @param array|null $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setQuery($value) { if (!empty($value) && !\is_array($value)) { throw new BadMethodCallException("Argument 'pks' of event {$this->name} must be empty or an array"); } return $value; } /** * Setter for the state argument * * @param int $value The value to set * * @return integer * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setState($value) { if (!is_numeric($value)) { throw new BadMethodCallException("Argument 'state' of event {$this->name} must be an integer"); } return (int) $value; } /** * Setter for the userId argument * * @param int $value The value to set * * @return integer * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setUserId($value) { if (!is_numeric($value)) { throw new BadMethodCallException("Argument 'userId' of event {$this->name} must be an integer"); } return (int) $value; } } PK �.]DȌ�� � Table/BeforeLoadEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforeLoad event * * @since 4.0.0 */ class BeforeLoadEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * keys mixed The optional primary key value to load the row by, or an array of fields to match. * reset boolean True to reset the default values before loading the new row. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('keys', $arguments)) { throw new BadMethodCallException("Argument 'keys' is required for event $name"); } if (!\array_key_exists('reset', $arguments)) { throw new BadMethodCallException("Argument 'reset' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the reset attribute * * @param mixed $value The value to set * * @return boolean Normalised value */ protected function setReset($value) { return $value ? true : false; } } PK �.]8$��� � Table/BeforeStoreEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforeStore event * * @since 4.0.0 */ class BeforeStoreEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * updateNulls boolean True to update fields even if they are null. * k mixed Name of the primary key fields in the table (string or array of strings). * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('updateNulls', $arguments)) { throw new BadMethodCallException("Argument 'updateNulls' is required for event $name"); } if (!\array_key_exists('k', $arguments)) { throw new BadMethodCallException("Argument 'k' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the updateNulls attribute * * @param mixed $value The value to set * * @return boolean Normalised value */ protected function setUpdateNulls($value) { return $value ? true : false; } } PK �.]�Մ� � Table/AfterStoreEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onAfterStore event * * @since 4.0.0 */ class AfterStoreEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * result boolean Did the save succeed? * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('result', $arguments)) { throw new BadMethodCallException("Argument 'result' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the result argument * * @param boolean $value The value to set * * @return boolean * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setResult($value) { return $value ? true : false; } } PK �.]|+LS� � Table/BeforeResetEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onBeforeReset event * * @since 4.0.0 */ class BeforeResetEvent extends AbstractEvent { } PK �.]���\� � Table/CheckEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onCheck event * * @since 4.0.0 */ class CheckEvent extends AbstractEvent { } PK �.]�6�� � Table/AfterResetEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onAfterReset event * * @since 4.0.0 */ class AfterResetEvent extends AbstractEvent { } PK �.]۵�'� � Table/AfterHitEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onAfterHit event * * @since 4.0.0 */ class AfterHitEvent extends BeforeCheckinEvent { } PK �.]�.�QO O Table/BeforeBindEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onBeforeBind event * * @since 4.0.0 */ class BeforeBindEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * src mixed An associative array or object to bind to the JTable instance. * ignore mixed An optional array or space separated list of properties to ignore while binding. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('src', $arguments)) { throw new BadMethodCallException("Argument 'src' is required for event $name"); } if (!\array_key_exists('ignore', $arguments)) { throw new BadMethodCallException("Argument 'ignore' is required for event $name"); } parent::__construct($name, $arguments); } /** * Setter for the src argument * * @param mixed $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setSrc($value) { if (!empty($value) && !\is_object($value) && !\is_array($value)) { throw new BadMethodCallException("Argument 'src' of event {$this->name} must be empty, object or array"); } return $value; } /** * Setter for the ignore argument * * @param mixed $value The value to set * * @return mixed * * @throws BadMethodCallException if the argument is not of the expected type */ protected function setIgnore($value) { if (!empty($value) && !\is_array($value)) { throw new BadMethodCallException("Argument 'ignore' of event {$this->name} must be empty or array"); } return $value; } } PK �.]�U�K� � Table/ObjectCreateEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onObjectCreate event * * @since 4.0.0 */ class ObjectCreateEvent extends AbstractEvent { } PK �.]:�� � Table/AfterDeleteEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for JTable's onAfterDelete event * * @since 4.0.0 */ class AfterDeleteEvent extends AbstractEvent { /** * Constructor. * * Mandatory arguments: * subject JTableInterface The table we are operating on * pk The optional primary key value we deleted. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('pk', $arguments)) { throw new BadMethodCallException("Argument 'pk' is required for event $name"); } parent::__construct($name, $arguments); } } PK �.]e�� � Table/AfterCheckinEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event\Table; \defined('JPATH_PLATFORM') or die; /** * Event class for JTable's onAfterCheckin event * * @since 4.0.0 */ class AfterCheckinEvent extends BeforeCheckinEvent { } PK �.]4��B B AbstractEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\Event\Event as BaseEvent; use Joomla\String\Normalise; /** * This class implements the base Event object used system-wide to offer orthogonality. Core objects such as Models, * Controllers, etc create such events on-the-fly and dispatch them through the application's Dispatcher (colloquially * known as the "Joomla! plugin system"). This way a suitable plugin, typically a "system" plugin, can modify the * behaviour of any internal class, providing system-wide services such as tags, content versioning, comments or even * low-level services such as the implementation of created/modified/locked behaviours, record hit counter etc. * * You can create a new Event with something like this: * * $event = AbstractEvent::create('onModelBeforeSomething', $myModel, $arguments); * * You can access the subject object from your event Listener using $event['subject']. It is up to your listener to * determine whether it should apply its functionality against the subject. * * This AbstractEvent class implements a mutable event which is allowed to change its arguments at runtime. This is * generally unadvisable. It's best to use AbstractImmutableEvent instead and constrict all your interaction to the * subject class. * * @since 4.0.0 */ abstract class AbstractEvent extends BaseEvent { /** * Creates a new CMS event object for a given event name and subject. The following arguments must be given: * subject object The subject of the event. This is the core object you are going to manipulate. * eventClass string The Event class name. If you do not provide it Joomla\CMS\Events\<eventNameWithoutOnPrefix> * will be used. * * @param string $eventName The name of the event, e.g. onTableBeforeLoad * @param array $arguments Additional arguments to pass to the event * * @return static * * @since 4.0.0 * @throws BadMethodCallException If you do not provide a subject argument */ public static function create(string $eventName, array $arguments = []) { // Get the class name from the arguments, if specified $eventClassName = ''; if (isset($arguments['eventClass'])) { $eventClassName = $arguments['eventClass']; unset($arguments['eventClass']); } /** * If the class name isn't set/found determine it from the event name, e.g. TableBeforeLoadEvent from * the onTableBeforeLoad event name. */ if (empty($eventClassName) || !class_exists($eventClassName, true)) { $bareName = strpos($eventName, 'on') === 0 ? substr($eventName, 2) : $eventName; $parts = Normalise::fromCamelCase($bareName, true); $eventClassName = __NAMESPACE__ . '\\' . ucfirst(array_shift($parts)) . '\\'; $eventClassName .= implode('', $parts); $eventClassName .= 'Event'; } // Make sure a non-empty subject argument exists and that it is an object if (!isset($arguments['subject']) || empty($arguments['subject']) || !\is_object($arguments['subject'])) { throw new BadMethodCallException("No subject given for the $eventName event"); } // Create and return the event object if (class_exists($eventClassName, true)) { return new $eventClassName($eventName, $arguments); } return new GenericEvent($eventName, $arguments); } /** * Constructor. Overridden to go through the argument setters. * * @param string $name The event name. * @param array $arguments The event arguments. * * @since 4.0.0 */ public function __construct(string $name, array $arguments = []) { parent::__construct($name, $arguments); $this->arguments = []; foreach ($arguments as $argumentName => $value) { $this->setArgument($argumentName, $value); } } /** * Get an event argument value. It will use a getter method if one exists. The getters have the signature: * * get<ArgumentName>($value): mixed * * where: * * $value is the value currently stored in the $arguments array of the event * It returns the value to return to the caller. * * @param string $name The argument name. * @param mixed $default The default value if not found. * * @return mixed The argument value or the default value. * * @since 4.0.0 */ public function getArgument($name, $default = null) { $methodName = 'get' . ucfirst($name); $value = parent::getArgument($name, $default); if (method_exists($this, $methodName)) { return $this->{$methodName}($value); } return $value; } /** * Add argument to event. It will use a setter method if one exists. The setters have the signature: * * set<ArgumentName>($value): mixed * * where: * * $value is the value being set by the user * It returns the value to return to set in the $arguments array of the event. * * @param string $name Argument name. * @param mixed $value Value. * * @return $this * * @since 4.0.0 */ public function setArgument($name, $value) { $methodName = 'set' . ucfirst($name); if (method_exists($this, $methodName)) { $value = $this->{$methodName}($value); } return parent::setArgument($name, $value); } } PK �.]$�9? ? ErrorEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event; \defined('JPATH_PLATFORM') or die; use Joomla\Application\AbstractApplication; /** * Event class for representing the application's `onError` event * * @since 4.0.0 */ class ErrorEvent extends AbstractEvent { /** * Get the event's application object * * @return AbstractApplication * * @since 4.0.0 */ public function getApplication(): AbstractApplication { return $this->arguments['application']; } /** * Get the event's error object * * @return \Throwable * * @since 4.0.0 */ public function getError(): \Throwable { return $this->getArgument('subject'); } /** * Set the event's error object * * @param \Throwable $error The new error to process * * @return void * * @since 4.0.0 */ public function setError(\Throwable $error) { $this->setArgument('subject', $error); } } PK �.]蛤8� � GenericEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event; \defined('JPATH_PLATFORM') or die; /** * This class gives a concrete implementation of the AbstractEvent class. * * @see \Joomla\CMS\Event\AbstractEvent * @since 4.0.0 */ class GenericEvent extends AbstractEvent { } PK �.]F�� AfterExtensionBootEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event; use Joomla\DI\Container; \defined('JPATH_PLATFORM') or die; /** * Event class for representing the extensions's `onBeforeExtensionBoot` event * * @since 4.0.0 */ class AfterExtensionBootEvent extends AbstractImmutableEvent { /** * Get the event's extension type. Can be: * - component * * @return string * * @since 4.0.0 */ public function getExtensionType(): string { return $this->getArgument('type'); } /** * Get the event's extension name. * * @return string * * @since 4.0.0 */ public function getExtensionName(): string { return $this->arguments['extensionName']; } /** * Get the event's container object * * @return Container * * @since 4.0.0 */ public function getContainer(): Container { return $this->arguments['container']; } } PK �.] Model/pwnkitnu ȯ�� PK �.] Model/.mad-rootnu �[��� PK �.]T]�H H Model/BeforeBatchEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event\Model; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\CMS\Event\AbstractImmutableEvent; /** * Event class for modifying a table object before a batch event is applied * * @since 4.0.0 */ class BeforeBatchEvent extends AbstractImmutableEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('src', $arguments)) { throw new BadMethodCallException("Argument 'src' is required for event $name"); } if (!\array_key_exists('type', $arguments)) { throw new BadMethodCallException("Argument 'type' is required for event $name"); } parent::__construct($name, $arguments); } } PK �.]��a ) WebAsset/WebAssetRegistryAssetChanged.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Event\WebAsset; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\CMS\WebAsset\WebAssetItemInterface; use Joomla\CMS\WebAsset\WebAssetRegistryInterface; /** * Event class for WebAssetRegistry "asset changed" events * * @since 4.0.0 */ class WebAssetRegistryAssetChanged extends AbstractEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { parent::__construct($name, $arguments); // Check for required arguments if (!\array_key_exists('asset', $arguments) || !($arguments['asset'] instanceof WebAssetItemInterface)) { throw new BadMethodCallException("Argument 'asset' of event $name is not of the expected type"); } if (!\array_key_exists('assetType', $arguments) || !is_string($arguments['assetType'])) { throw new BadMethodCallException("Argument 'assetType' of event $name is not of the expected type"); } if (!\array_key_exists('change', $arguments) || !is_string($arguments['change'])) { throw new BadMethodCallException("Argument 'change' of event $name is not of the expected type"); } } /** * Setter for the subject argument * * @param WebAssetRegistryInterface $value The value to set * * @return WebAssetRegistryInterface * * @throws BadMethodCallException if the argument is not of the expected type * * @since 4.0.0 */ protected function setSubject($value) { if (!$value || !($value instanceof WebAssetRegistryInterface)) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is not of the expected type"); } return $value; } /** * Return modified asset * * @return WebAssetItemInterface * * @since 4.0.0 */ public function getAsset(): WebAssetItemInterface { return $this->arguments['asset']; } /** * Return a type of modified asset * * @return string * * @since 4.0.0 */ public function getAssetType(): string { return $this->arguments['assetType']; } /** * Return a type of changes: new, remove, override * * @return string * * @since 4.0.0 */ public function getChange(): string { return $this->arguments['change']; } } PK �.]:�� � WebAsset/AbstractEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event\WebAsset; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\CMS\Event\AbstractImmutableEvent; /** * Event class for WebAsset events * * @since 4.0.0 */ abstract class AbstractEvent extends AbstractImmutableEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('subject', $arguments)) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is required but has not been provided"); } parent::__construct($name, $arguments); } } PK �.] pwnkitnu ȯ�� PK �.]#V� BeforeExtensionBootEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event; use Joomla\DI\Container; \defined('JPATH_PLATFORM') or die; /** * Event class for representing the extensions's `onBeforeExtensionBoot` event * * @since 4.0.0 */ class BeforeExtensionBootEvent extends AbstractImmutableEvent { /** * Get the event's extension type. Can be: * - component * * @return string * * @since 4.0.0 */ public function getExtensionType(): string { return $this->getArgument('type'); } /** * Get the event's extension name. * * @return string * * @since 4.0.0 */ public function getExtensionName(): string { return $this->arguments['extensionName']; } /** * Get the event's container object * * @return Container * * @since 4.0.0 */ public function getContainer(): Container { return $this->arguments['container']; } } PK �.]�+FG G $ Workflow/WorkflowTransitionEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event\Workflow; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for Workflow Functionality Used events * * @since 4.0.0 */ class WorkflowTransitionEvent extends AbstractEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { $arguments['stopTransition'] = false; parent::__construct($name, $arguments); } /** * Set used parameter to true * * @param bool $value The value to set * * @return void * * @since 4.0.0 */ public function setStopTransition($value = true) { $this->arguments['stopTransition'] = $value; if ($value === true) { $this->stopPropagation(); } } } PK �.]��P. . + Workflow/WorkflowFunctionalityUsedEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event\Workflow; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * Event class for Workflow Functionality Used events * * @since 4.0.0 */ class WorkflowFunctionalityUsedEvent extends AbstractEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { $arguments['used'] = false; parent::__construct($name, $arguments); } /** * Set used parameter to true * * @param bool $value The value to set * * @return void * * @since 4.0.0 */ public function setUsed($value = true) { $this->arguments['used'] = $value; if ($value === true) { $this->stopPropagation(); } } } PK �.]`@�y� � Workflow/AbstractEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event\Workflow; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\CMS\Event\AbstractImmutableEvent; use function explode; /** * Event class for WebAsset events * * @since 4.0.0 */ abstract class AbstractEvent extends AbstractImmutableEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { if (!\array_key_exists('subject', $arguments)) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is required but has not been provided"); } if (!\array_key_exists('extension', $arguments)) { throw new BadMethodCallException("Argument 'extension' of event {$this->name} is required but has not been provided"); } if (strpos($arguments['extension'], '.') === false) { throw new BadMethodCallException("Argument 'extension' of event {$this->name} has wrong format. Valid format: 'component.section'"); } if (!\array_key_exists('extensionName', $arguments) || !\array_key_exists('section', $arguments)) { $parts = explode('.', $arguments['extension']); $arguments['extensionName'] = $arguments['extensionName'] ?? $parts[0]; $arguments['section'] = $arguments['section'] ?? $parts[1]; } parent::__construct($name, $arguments); } } PK �.]���W� � View/DisplayEvent.phpnu &1i� <?php /** * Joomla! Content Management System * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\CMS\Event\View; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; use Joomla\CMS\Event\AbstractImmutableEvent; use Joomla\CMS\MVC\View\ViewInterface; /** * Event class for WebAsset events * * @since 4.0.0 */ class DisplayEvent extends AbstractImmutableEvent { /** * Constructor. * * @param string $name The event name. * @param array $arguments The event arguments. * * @throws BadMethodCallException * * @since 4.0.0 */ public function __construct($name, array $arguments = array()) { if (!isset($arguments['subject'])) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is required but has not been provided"); } if (!($arguments['subject'] instanceof ViewInterface)) { throw new BadMethodCallException("Argument 'subject' of event {$this->name} is not of type 'ViewInterface'"); } if (!isset($arguments['extension'])) { throw new BadMethodCallException("Argument 'extension' of event {$this->name} is required but has not been provided"); } if (!isset($arguments['extension']) || !is_string($arguments['extension'])) { throw new BadMethodCallException("Argument 'extension' of event {$this->name} is not of type 'string'"); } if (strpos($arguments['extension'], '.') === false) { throw new BadMethodCallException("Argument 'extension' of event {$this->name} has wrong format. Valid format: 'component.section'"); } if (!\array_key_exists('extensionName', $arguments) || !\array_key_exists('section', $arguments)) { $parts = explode('.', $arguments['extension']); $arguments['extensionName'] = $arguments['extensionName'] ?? $parts[0]; $arguments['section'] = $arguments['section'] ?? $parts[1]; } parent::__construct($name, $arguments); } } PK �.] View/.mad-rootnu �[��� PK �.] View/pwnkitnu ȯ�� PK �.] .mad-rootnu �[��� PK �.]� � AbstractImmutableEvent.phpnu &1i� <?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 */ namespace Joomla\CMS\Event; \defined('JPATH_PLATFORM') or die; use BadMethodCallException; /** * 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) { 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 ) ); } } PK �.]��� � Table/AfterMoveEvent.phpnu &1i� PK �.]ev�b b , Table/BeforeCheckoutEvent.phpnu &1i� PK �.]%-~�� � � Table/BeforeHitEvent.phpnu &1i� PK �.]J��&O O � Table/SetNewTagsEvent.phpnu &1i� PK �.] L Table/pwnkitnu ȯ�� PK �.]��1� � � Table/BeforeCheckinEvent.phpnu &1i� PK �.]+k㽄 � � Table/AfterLoadEvent.phpnu &1i� PK �.]w��i i �&