Edit File by line
/home/barbar84/www/wp-conte.../plugins/worker/src/Symfony/EventDis...
File: Event.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of the Symfony package.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Fabien Potencier <fabien@symfony.com>
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Event is the base class for classes containing event data.
[12] Fix | Delete
*
[13] Fix | Delete
* This class contains no event data. It is used by events that do not pass
[14] Fix | Delete
* state information to an event handler when an event is raised.
[15] Fix | Delete
*
[16] Fix | Delete
* You can call the method stopPropagation() to abort the execution of
[17] Fix | Delete
* further listeners in your event listener.
[18] Fix | Delete
*
[19] Fix | Delete
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
[20] Fix | Delete
* @author Jonathan Wage <jonwage@gmail.com>
[21] Fix | Delete
* @author Roman Borschel <roman@code-factory.org>
[22] Fix | Delete
* @author Bernhard Schussek <bschussek@gmail.com>
[23] Fix | Delete
*
[24] Fix | Delete
* @api
[25] Fix | Delete
*/
[26] Fix | Delete
class Symfony_EventDispatcher_Event
[27] Fix | Delete
{
[28] Fix | Delete
[29] Fix | Delete
/**
[30] Fix | Delete
* @var bool Whether no further event listeners should be triggered
[31] Fix | Delete
*/
[32] Fix | Delete
private $propagationStopped = false;
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Returns whether further event listeners should be triggered.
[36] Fix | Delete
*
[37] Fix | Delete
* @see Symfony_EventDispatcher_Event::stopPropagation
[38] Fix | Delete
* @return bool Whether propagation was already stopped for this event.
[39] Fix | Delete
*
[40] Fix | Delete
* @api
[41] Fix | Delete
*/
[42] Fix | Delete
public function isPropagationStopped()
[43] Fix | Delete
{
[44] Fix | Delete
return $this->propagationStopped;
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Stops the propagation of the event to further event listeners.
[49] Fix | Delete
*
[50] Fix | Delete
* If multiple event listeners are connected to the same event, no
[51] Fix | Delete
* further event listener will be triggered once any trigger calls
[52] Fix | Delete
* stopPropagation().
[53] Fix | Delete
*
[54] Fix | Delete
* @api
[55] Fix | Delete
*/
[56] Fix | Delete
public function stopPropagation()
[57] Fix | Delete
{
[58] Fix | Delete
$this->propagationStopped = true;
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function