ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Namespaces | |
Loop | |
Promise | |
Data Structures | |
class | ContinueCallbackTest |
class | CoroutineTest |
class | EventEmitter |
EventEmitter object. More... | |
interface | EventEmitterInterface |
Event Emitter Interface. More... | |
class | EventEmitterTest |
class | Promise |
An implementation of the Promise pattern. More... | |
class | PromiseAlreadyResolvedException |
This exception is thrown when the user tried to reject or fulfill a promise, after either of these actions were already performed. More... | |
class | PromiseTest |
class | Version |
This class contains the version number for this package. More... | |
Functions | |
coroutine (callable $gen) | |
Turn asynchronous promise-based code into something that looks synchronous again, through the use of generators. More... | |
on ($eventName, callable $callBack, $priority=100) | |
Subscribe to an event. More... | |
once ($eventName, callable $callBack, $priority=100) | |
Subscribe to an event exactly once. More... | |
emit ($eventName, array $arguments=[], callable $continueCallBack=null) | |
Emits an event. More... | |
listeners ($eventName) | |
Returns the list of listeners for an event. More... | |
removeListener ($eventName, callable $listener) | |
Removes a specific listener from an event. More... | |
removeAllListeners ($eventName=null) | |
Removes all listeners. More... | |
Variables | |
trait | EventEmitterTrait |
Event Emitter Trait. More... | |
Sabre\Event\coroutine | ( | callable | $gen | ) |
Turn asynchronous promise-based code into something that looks synchronous again, through the use of generators.
Example without coroutines:
$promise = $httpClient->request('GET', '/foo'); $promise->then(function($value) {
return $httpClient->request('DELETE','/foo');
})->then(function($value) {
return $httpClient->request('PUT', '/foo');
})->error(function($reason) {
echo "Failed because: $reason\n";
});
Example with coroutines:
coroutine(function() {
try { yield $httpClient->request('GET', '/foo'); yield $httpClient->request('DELETE', /foo'); yield $httpClient->request('PUT', '/foo'); } catch( $reason) { echo "Failed because: $reason\n"; }
});
So tempted to use the mythical y-combinator here, but it's not needed in PHP.
Definition at line 47 of file coroutine.php.
References $promise, $type, and Sabre\Event\Promise\PENDING.
Referenced by Sabre\Event\CoroutineTest\testBasicCoroutine(), Sabre\Event\CoroutineTest\testCoroutineException(), Sabre\Event\CoroutineTest\testDeepException(), Sabre\Event\CoroutineTest\testFulfilledPromise(), Sabre\Event\CoroutineTest\testFulfilledPromiseAsync(), Sabre\Event\CoroutineTest\testNonGenerator(), Sabre\Event\CoroutineTest\testRejectedPromise(), Sabre\Event\CoroutineTest\testRejectedPromiseArray(), Sabre\Event\CoroutineTest\testRejectedPromiseAsync(), Sabre\Event\CoroutineTest\testRejectedPromiseException(), Sabre\Event\CoroutineTest\testResolveToLastYield(), and Sabre\Event\CoroutineTest\testResolveToLastYieldPromise().
Sabre\Event\emit | ( | $eventName, | |
array | $arguments = [] , |
||
callable | $continueCallBack = null |
||
) |
Emits an event.
This method will return true if 0 or more listeners were succesfully handled. false is returned if one of the events broke the event chain.
If the continueCallBack is specified, this callback will be called every time before the next event handler is called.
If the continueCallback returns false, event propagation stops. This allows you to use the eventEmitter as a means for listeners to implement functionality in your application, and break the event loop as soon as some condition is fulfilled.
Note that returning false from an event subscriber breaks propagation and returns false, but if the continue-callback stops propagation, this is still considered a 'successful' operation and returns true.
Lastly, if there are 5 event handlers for an event. The continueCallback will be called at most 4 times.
string | $eventName | |
array | $arguments | |
callback | $continueCallBack |
Definition at line 99 of file EventEmitterTrait.php.
References $result, and Sabre\Event\listeners().
Referenced by Sabre\HTTP\ClientMock\curlExec(), Sabre\HTTP\ClientMock\curlStuff(), and Sabre\HTTP\ClientMock\doRequest().
Sabre\Event\listeners | ( | $eventName | ) |
Returns the list of listeners for an event.
The list is returned as an array, and the list of events are sorted by their priority.
string | $eventName |
Definition at line 145 of file EventEmitterTrait.php.
Referenced by Sabre\Event\emit(), Sabre\Event\on(), Sabre\Event\removeAllListeners(), and Sabre\Event\removeListener().
Sabre\Event\on | ( | $eventName, | |
callable | $callBack, | ||
$priority = 100 |
|||
) |
Subscribe to an event.
string | $eventName | |
callable | $callBack | |
int | $priority |
Definition at line 35 of file EventEmitterTrait.php.
References Sabre\Event\listeners().
Referenced by ilExternalFeed\_getRSSLocation(), LightboxMockPage\getComponent(), LightboxTest\getExpectedImagePageHTML(), LightboxTest\getExpectedMixedPagesHTML(), Sabre\Event\once(), LSControlBuilder\setListenerJS(), showHelp(), ilWACTokenTest\testCookieGeneration(), and Sabre\VObject\Parser\XmlTest\testRFC6321Example2().
Sabre\Event\once | ( | $eventName, | |
callable | $callBack, | ||
$priority = 100 |
|||
) |
Subscribe to an event exactly once.
string | $eventName | |
callable | $callBack | |
int | $priority |
Definition at line 59 of file EventEmitterTrait.php.
References Sabre\Event\on(), and Sabre\Event\removeListener().
Referenced by ilChatroomAbstractTaskTest\createSendResponseMock(), assClozeTestGUITest\setUp(), assFlashQuestionGUITest\setUp(), assImagemapQuestionGUITest\setUp(), test_008_IntermediateThrowEvent\setUp(), test_009_EndEvent\setUp(), ComponentRendererLoaderCachingWrapperTest\test_caches(), ilObjChatroomAccessTest\test_checkAccessReturnFalse(), ilObjChatroomAccessTest\test_checkAccessReturnTrueWithRbacAccess(), ilObjChatroomAccessTest\test_checkGotoReturnTrue(), ilObjChatroomAdminAccessTest\test_checkGotoReturnTrue(), ComponentRendererLoaderCachingWrapperTest\test_forwards_from_underlying(), ComponentRendererLoaderResourceRegistryWrapperTest\test_forwards_from_underlying(), ilObjChatroomTest\test_GetPublicObjId(), ilObjChatroomTest\test_GetPublicObjIdDefaultValue(), ComponentRendererFSLoaderTest\test_getRenderer_successfully_extra(), ComponentRendererFSLoaderTest\test_getRenderer_uses_RendererFactory(), ValidationConstraintsCustomTest\test_gracefully_handle_arrays_and_objects(), ValidationConstraintsCustomTest\test_no_sprintf_on_one_parameter(), DefaultRendererTest\test_passesContextsToComponentRendererLoader(), ComponentRendererLoaderResourceRegistryWrapperTest\test_registerResources(), ValidationConstraintsCustomTest\test_use_txt(), ilIndividualAssessmentMembersTest\test_withAccessHandling(), ilCertificateTemplatePreviewActionTest\testA(), ilFormFieldParserTest\testA4Landscape(), ilFormFieldParserTest\testA5(), ilFormFieldParserTest\testA5Landscape(), ilTermsOfServiceHelperTest\testAcceptanceHistoryCanBeDeleted(), ilTermsOfServiceAppEventListenerTest\testAcceptanceHistoryDeletionIsDelegatedWhenUserIsDeleted(), ilTermsOfServiceAcceptanceDatabaseGatewayTest\testAcceptanceHistoryOfAUserCanBeDeleted(), ilTermsOfServiceAcceptanceDatabaseGatewayTest\testAcceptanceHistoryRecordCanBeLoadedById(), ilTermsOfServiceAcceptanceDatabaseGatewayTest\testAcceptanceIsTrackedAndCreatesANewTermsOfServicesVersionIfNecessary(), ilTermsOfServiceAcceptanceDatabaseGatewayTest\testAcceptanceIsTrackedAndRefersToAnExistingTermsOfServicesVersion(), ilTermsOfServiceDocumentGUITest\testAccessDeniedErrorIsRaisedWhenPermissionsAreMissing(), Sabre\DAV\ServerEventsTest\testAfterResponse(), Twig_Tests_EnvironmentTest\testAutoReloadCacheHit(), Twig_Tests_EnvironmentTest\testAutoReloadCacheMiss(), Twig_Tests_EnvironmentTest\testAutoReloadOutdatedCacheHit(), Monolog\LoggerTest\testBubblingWhenTheHandlerReturnsFalse(), ilChatroomUserTest\testBuildFullname(), ilChatroomUserTest\testBuildLogin(), ilChatroomUserTest\testBuildShortname(), ilMailAddressTypesTest\testCacheOnlyResolvesAndValidatesRecipientsOnceIfCachingIsEnabled(), ilCertificateTemplateImportActionTest\testCertificateCanBeImportedWithBackgroundImage(), ilCertificateTemplateImportActionTest\testCertificateCanBeImportedWithoutBackgroundImage(), ilCertificateCloneActionTest\testCloneCertificate(), ilMailOptionsTest\testConstructor(), ilCertificateSettingsExerciseRepositoryTest\testCreate(), ilCertificateSettingsTestFormRepositoryTest\testCreate(), ilTermsOfServiceDocumentTest\testCriteriaCanBeAttachedToAndDetachedFromDocumentPersistently(), ilFormFieldParserTest\testCustomPageWidth(), Monolog\Handler\GelfHandlerTest\testDebug(), Monolog\Handler\PHPConsoleHandlerTest\testDebug(), Monolog\Handler\PHPConsoleHandlerTest\testDebugContextInMessage(), Monolog\Handler\PHPConsoleHandlerTest\testDebugTags(), ilMailTemplateServiceTest\testDefaultTemplateCanBeSetByContext(), ilMailTemplateServiceTest\testDefaultTemplateForContextCanBeUnset(), ilCertificateTestTemplateDeleteActionTest\testDelete(), ilCertificateScormTemplateDeleteActionTest\testDeleteScormTemplateAndSettings(), ilCertificateTemplateDeleteActionTest\testDeleteTemplateAndUseOldThumbnail(), ilCertificateTemplateDeleteActionTest\testDeleteTemplateButNoThumbnailWillBeCopiedFromOldCertificate(), Twig_Tests_Extension_DateTest\testDiffCanReturnTranslatableString(), ilTermsOfServiceHelperTest\testDocumentCanBeAccepted(), ilTermsOfServiceDocumentTest\testDocumentModelCanBeBuiltFromArrayWithAttachedCriteriaBeingRead(), ilTermsOfServiceDocumentTest\testDocumentModelCanCreatedByIdWithAttachedCriteriaBeingRead(), ilCertificatePdfActionTest\testDownloadResultsInExceptionBecauseTheServerIsNotActive(), ilMailTemplateRepositoryTest\testEntityCanBeDeleted(), ilMailTemplateRepositoryTest\testEntityCanBeModified(), ilMailTemplateRepositoryTest\testEntityCanBeSaved(), ilCertificateQueueRepositoryTest\testEntryCanBeAddedToQueue(), Monolog\Handler\PHPConsoleHandlerTest\testError(), ilTermsOfServiceUserHasGlobalRoleCriterionTest\testEvaluationFailsIfConfiguredRoleIsNotAGlobalRole(), ilTermsOfServiceUserHasGlobalRoleCriterionTest\testEvaluationFailsIfUserIsNotAssignedToConfiguredGlobalRole(), ilTermsOfServiceUserHasGlobalRoleCriterionTest\testEvaluationSucceedsIfUserIsAssignedToDefinedGlobalRole(), Monolog\Handler\PHPConsoleHandlerTest\testException(), ilMailTemplateRepositoryTest\testExceptionIsRaisedIfNoTemplateCanBeFoundById(), Monolog\Handler\SocketHandlerTest\testExceptionIsThrownIfCannotSetChunkSize(), Monolog\Handler\SocketHandlerTest\testExceptionIsThrownIfCannotSetTimeout(), Monolog\Handler\SocketHandlerTest\testExceptionIsThrownOnFsockopenError(), Monolog\Handler\SocketHandlerTest\testExceptionIsThrownOnPfsockopenError(), ilStopWorkflowActivityTest\testExecute(), ilChatroomClearTaskTest\testExecuteDefault(), ilChatroomClearTaskTest\testExecuteDefaultFailedNoRoomExists(), ilChatroomClearTaskTest\testExecuteDefaultFailedPermission(), Twig_Tests_Loader_ChainTest\testExists(), ilCertificateTemplateExportActionTest\testExport(), ilCertificateQueueRepositoryTest\testFetchAllEntriesFromQueue(), ilCertificateSettingsScormFormRepositoryTest\testFetchFormFieldData(), ilUserCertificateTableProviderTest\testFetchingDataSetForTableWithoutParamtersAndWithoutFilters(), ilUserCertificateRepositoryTest\testFetchObjectWithCertificateForUser(), ilUserCertificateRepositoryTest\testFetchUserIdsWithCertificateForObject(), ilCertificateBackgroundImageUploadTest\testFileCanBeUploaded(), ilTermsOfServiceSettingsFormGUITest\testFormCanBeSavedWithDisabledService(), ilTermsOfServiceSettingsFormGUITest\testFormCanBeSavedWithEnabledServiceWhenAtLeastOneDocumentExists(), ilTermsOfServiceSettingsFormGUITest\testFormCanBeSavedWithEnabledServiceWhenNoDocumentsExistButServiceIsAlreadyEnabled(), ilTermsOfServiceSettingsFormGUITest\testFormCannotBeSavedWithEnabledServiceWhenNoDocumentsExistAndServiceIsCurrentlyDisabled(), ilCertificateSettingsExerciseRepositoryTest\testFormFieldData(), ilCertificateSettingsTestFormRepositoryTest\testFormFieldData(), ilTermsOfServiceCriterionFormGUITest\testFormForExistingAssignmentCannotBeSavedForInalidInput(), ilTermsOfServiceDocumentFormGUITest\testFormForExistingDocumentsCanBeSavedForValidInput(), ilTermsOfServiceCriterionFormGUITest\testFormForNewCriterionAssignmentCanBeSavedForValidInput(), ilTermsOfServiceDocumentFormGUITest\testFormForNewDocumentsCanBeSavedForValidInput(), ilTermsOfServiceCriterionFormGUITest\testFormIsProperlyBuiltForExistingCriterionAssignment(), ilTermsOfServiceCriterionFormGUITest\testFormIsProperlyBuiltForNewCriterionAssignment(), ilChatroomUserTest\testGetChatNameSuggestionsIfNotAnonymous(), Monolog\Handler\HandlerWrapperTest\testGetFormatter(), ilCertificateLearningHistoryProviderTest\testGetName(), ilObjChatroomTest\testGetPersonalInformation(), ilDefaultPlaceholderValuesTest\testGetPlaceholderValues(), ilExercisePlaceholderValuesTest\testGetPlaceholderValues(), ilScormPlaceholderValuesTest\testGetPlaceholderValues(), ilChatroomUserTest\testGetUserIdFromSessionIfAnonymous(), ilChatroomUserTest\testGetUserIdIfNotAnonymous(), ilChatroomUserTest\testGetUserIdRandomGeneratedIfAnonymous(), ilChatroomUserTest\testGetUsernameFromIlObjUser(), Monolog\Handler\DoctrineCouchDBHandlerTest\testHandle(), Monolog\Handler\MongoDBHandlerTest\testHandle(), Monolog\Handler\DynamoDbHandlerTest\testHandle(), Monolog\Handler\MailHandlerTest\testHandle(), Monolog\Handler\HandlerWrapperTest\testHandle(), Monolog\Handler\AmqpHandlerTest\testHandleAmqpExt(), Monolog\Handler\MailHandlerTest\testHandleBatch(), Monolog\Handler\HandlerWrapperTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatch(), Monolog\Handler\RavenHandlerTest\testHandleBatchPicksProperMessage(), Monolog\LoggerTest\testHandlersNotCalledBeforeFirstHandling(), Monolog\LoggerTest\testHandlersNotCalledBeforeFirstHandlingWithAssocArray(), Monolog\Handler\PsrHandlerTest\testHandlesAllLevels(), ilObjChatroomTest\testInitDefaultRoles(), Monolog\Handler\GelfHandlerTest\testInjectedGelfMessageFormatter(), ilBuddyListTest\testInstanceCanBeCreatedByGlobalUserObject(), ilBuddyListTest\testInstanceCannotBeCreatedByAnonymousGlobalUserObject(), Monolog\Handler\HandlerWrapperTest\testIsHandling(), ilTermsOfServiceDocumentGUITest\testLastResetDateIsDisplayedInMessageBoxWhenAgreementsHaveBeenResetAtLeastOnce(), ilTermsOfServiceAcceptanceDatabaseGatewayTest\testLatestAcceptanceOfUserCanBeLoaded(), ilFormFieldParserTest\testLetter(), ilFormFieldParserTest\testLetterLandscape(), ilTermsOfServiceDocumentTableDataProviderTest\testListOfDocumentsCanBeRetrieved(), Twig_Tests_ContainerRuntimeLoaderTest\testLoad(), ValidationFactoryTest\testLoadsLanguageModule(), Twig_Tests_ContainerRuntimeLoaderTest\testLoadUnknownRuntimeReturnsNull(), Monolog\LoggerTest\testLog(), ilTermsOfServiceDocumentCriteriaEvaluationTest\testLogicalAndEvaluatorReturnsFalseIfAnyCriteriaAttachedToADocumentDoesNotMatch(), ilTermsOfServiceDocumentCriteriaEvaluationTest\testLogicalAndEvaluatorReturnsTrueIfAllCriteriaAttachedToADocumentMatch(), ilTermsOfServiceDocumentCriteriaEvaluationTest\testLogicalAndEvaluatorReturnsTrueIfNoCriterionIsAttachedToADocumentAtAll(), ilMailOptionsGUITest\testMailOptionsAreNotAccessibleIfGlobalAccessIsDeniedAndUserWillBeRedirectedToMailSystem(), ilMailOptionsGUITest\testMailOptionsAreNotAccessibleIfGlobalAccessIsDeniedAndUserWillBeRedirectedToPersonalSettings(), Monolog\Handler\SwiftMailerHandlerTest\testMessageCanBeCustomizedGivenLoggedData(), Monolog\Handler\SwiftMailerHandlerTest\testMessageSubjectFormatting(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToDefaultTransport(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToThePassedTransporter(), ilTermsOfServiceDocumentGUITest\testNoLastResetDateIsDisplayedInMessageBoxWhenAgreementsHaveBeenResetAtLeastOnce(), ilMailTransportSettingsTest\testNoMailWillResultInUpdateProcess(), Monolog\LoggerTest\testNotBubblingWhenTheHandlerReturnsTrue(), ilMailAddressTypesTest\testNoUserIdCanBeResolvedFromEmailAddress(), ilMailAddressTypesTest\testNoUserIdCanBeResolvedFromUnknownLoginAddress(), ilMailAddressTypesTest\testNoUserIdsCanBeResolvedFromInvalidRoleAddress(), ilCertificateTemplateImportActionTest\testNoXmlFileInUplodadZipFolder(), Psr\Log\Test\LoggerInterfaceTest\testObjectCastToString(), ilMailTransportSettingsTest\testOnlyFirstMailWillResultInUpdateProcess(), ilMailTransportSettingsTest\testOnlySecondMailWillResultInUpdateProcess(), Monolog\Handler\PHPConsoleHandlerTest\testOptionCallsConnectorMethod(), ilObjUserPasswordTest\testPasswordManagerEncodesRawPasswordWithoutSalt(), ilObjUserPasswordTest\testPasswordManagerEncodesRawPasswordWithSalt(), ilObjUserPasswordTest\testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders(), ilObjUserPasswordTest\testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders(), ilObjUserPasswordTest\testPasswordManagerReencodesPasswordIfReencodingIsNecessary(), ilObjUserPasswordTest\testPasswordManagerVerifiesPassword(), ilMailAddressTypesTest\testPermissionsAreCheckedForRegularUsersWhenValidatingGlobalRoleAddresses(), Monolog\Handler\HandlerWrapperTest\testPopProcessor(), Monolog\Handler\RedisHandlerTest\testPredisHandle(), Monolog\Handler\RedisHandlerTest\testPredisHandleCapped(), IsIntConstraintTest\testProblemWith(), IsNullConstraintTest\testProblemWith(), IsStringConstraintTest\testProblemWith(), GreatherThanConstraintTest\testProblemWith(), LessThanConstraintTest\testProblemWith(), HasMaxLengthConstraintTest\testProblemWith(), HasMinLengthConstraintTest\testProblemWith(), NotTest\testProblemWith(), IsNumericConstraintTest\testProblemWith(), Monolog\LoggerTest\testProcessorsAreCalledOnlyOnce(), Monolog\LoggerTest\testProcessorsNotCalledWhenNotHandled(), Monolog\Handler\AbstractProcessingHandlerTest\testProcessRecord(), Monolog\Handler\HandlerWrapperTest\testPushProcessor(), Monolog\Handler\RedisHandlerTest\testRedisHandle(), Monolog\Handler\RedisHandlerTest\testRedisHandleCapped(), ilBuddyListTest\testRelationCannotBeRequestedForUnknownUserAccounts(), ilBuddyListTest\testRelationRequestCannotBeApprovedByTheRelationOwner(), ilBuddyListTest\testRelationRequestCannotBeIgnoredByTheRelationOwner(), ilCertificateQueueRepositoryTest\testRemoveFromQueue(), ilBuddyListTest\testRepositoryIsEnquiredOnlyOnceToFetchRelationsWhenCalledImplicitly(), ilBuddyListTest\testRepositoryIsEnquiredWhenBuddyListShouldBeDestroyed(), Monolog\Handler\HandlerWrapperTest\testSetFormatter(), ilTermsOfServiceTrimmedDocumentPurifierTest\testSingleStringIsTrimmed(), ilTermsOfServiceAppEventListenerTest\testStaticEventListeningWorksAsExpected(), ilMailTemplateRepositoryTest\testTemplateCanBeFoundById(), ilBuddyListTest\testUnlinkedRelationIsReturnedWhenRelationWasRequestedForAUknownBuddyId(), ilTermsOfServiceDocumentFormGUITest\testUploadIssuesAreHandledWhenDocumentFormIsSaved(), ilMailAddressTypesTest\testUserIdCanBeResolvedFromLoginAddress(), ilMailAddressTypesTest\testUserIdsCanBeResolvedFromGroupNameAddress(), ilMailAddressTypesTest\testUserIdsCanBeResolvedFromRoleAddress(), ilMailAddressTypesTest\testUserIdsCannotBeResolvedFromNonExistingGroupNameAddress(), ilTermsOfServiceRequestTargetAdjustmentCaseTest\testUserShouldBeForcedToAcceptTermsOfServiceWhenNotDoingItYetInCurrentRequest(), ilMailAddressTypesTest\testValidationFailsForNonExistingGroupNameAddress(), ilMailAddressTypesTest\testValidationForAnonymousUserAsSystemActorSucceedsAlwaysForGlobalRoleAddresses(), ilCertificateDownloadValidatorTest\testValidationReturnedFalseBecauseJavaServerIsNotActive(), ilCertificateActiveValidatorTest\testValidationReturnFalseBecauseJavaServerIsInactive(), ilMailAddressTypesTest\testValidationSucceedsForExistingGroupName(), ilTermsOfServiceUserHasLanguageCriterionTest\testValuesFromFormUserInterfaceElementsCanBeRetrieved(), ilTermsOfServiceUserHasGlobalRoleCriterionTest\testValuesFromFormUserInterfaceElementsCanBeRetrieved(), Monolog\Handler\GelfHandlerTest\testWarning(), ilMailAddressParserTest\testWrappingParserDelegatesParsingToAggregatedParser(), Monolog\Handler\ZendMonitorHandlerTest\testWrite(), and ilCertificateTemplateImportActionTest\testZipfileCouldNoBeMoved().
Sabre\Event\removeAllListeners | ( | $eventName = null | ) |
Removes all listeners.
If the eventName argument is specified, all listeners for that event are removed. If it is not specified, every listener for every event is removed.
string | $eventName |
Definition at line 201 of file EventEmitterTrait.php.
References Sabre\Event\listeners().
Sabre\Event\removeListener | ( | $eventName, | |
callable | $listener | ||
) |
Removes a specific listener from an event.
If the listener could not be found, this method will return false. If it was removed it will return true.
string | $eventName | |
callable | $listener |
Definition at line 175 of file EventEmitterTrait.php.
References $index, and Sabre\Event\listeners().
Referenced by Sabre\Event\once().
trait Sabre::Event\EventEmitterTrait |
Event Emitter Trait.
This trait contains all the basic functions to implement an EventEmitterInterface.
Using the trait + interface allows you to add EventEmitter capabilities without having to change your base-class.
Definition at line 18 of file EventEmitterTrait.php.