Class \Prado\Util\Behaviors\TForkable
TForkable class.
This attaches the Owner Component fxPrepareForFork
and fxRestoreAfterFork
methods as the event handlers for the PRADO global event fxPrepareForFork
and
fxRestoreAfterFork
, respectively.
This should only be used when the TComponent is not TComponent::listen()ing or the handlers will be double added.
Class hierarchy
- \Prado\Util\Behaviors\TForkable
- \Prado\Util\TBehavior implements IBehavior
- \Prado\Util\TBaseBehavior implements IBaseBehavior uses TPriorityPropertyTrait
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.3.0
protected
|
attachEventHandlers(TComponent $component) : bool
Attaches the component event handlers:
{@see \Prado\TComponent::fxAttachClassBehavior()} and {@see \Prado\TComponent::fxDetachClassBehavior()}
|
protected
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |