File manager - Edit - /home/ferretapmx/public_html/Workflow.tar
Back
WorkflowFunctionalityUsedEvent.php 0000644 00000002311 15231072304 0013455 0 ustar 00 <?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\Workflow; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * 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 = []) { $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(); } } } WorkflowTransitionEvent.php 0000644 00000002340 15231072304 0012140 0 ustar 00 <?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\Workflow; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * 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 = []) { $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(); } } } AbstractEvent.php 0000644 00000003367 15231072304 0010030 0 ustar 00 <?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\Workflow; use Joomla\CMS\Event\AbstractImmutableEvent; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * 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 = []) { 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 (!str_contains($arguments['extension'], '.')) { 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'] ??= $parts[0]; $arguments['section'] ??= $parts[1]; } parent::__construct($name, $arguments); } } .htaccess 0000555 00000000355 15231072304 0006343 0 ustar 00 <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>