CoreFiles by mySites.guru
WorkflowTransitionEvent.php59 lines, 1,108 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
b7821db350419cdf6f45b0482f3997d4
sha1
2ac2fb09bfe909a41bc7b2fc972107677601c701
sha256
16114be1f5d0fa2f5dff8c3a7ae2af2ae71948cb174c662470b77a18087c983c
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @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();
		}
	}


}

The same content is in 4 releases, Joomla 4.0.0-beta2 to 4.0.0-beta5. See them all, or every version of this file.