This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="content-wrapper clearfix"> | |
| <div class="col-md-12 breadcrumb-media"> | |
| <div class="breadcrumbs"> | |
| <ul> | |
| <li><a href="/">GZO</a></li> | |
| <li><a href="/kliniken-zentren/">Kliniken & Zentren</a></li> | |
| <li><a href="/kliniken-zentren/frauenklinik/">Frauenklinik</a></li> | |
| <li><a href="/kliniken-zentren/frauenklinik/geburtshilfe/">Geburtshilfe</a></li> | |
| <li><a href="/kliniken-zentren/frauenklinik/geburtshilfe/schwangerschaft/schwangerschaft/">Schwangerschaft</a></li> | |
| <li><a href="/kliniken-zentren/frauenklinik/geburtshilfe/schwangerschaft/schwangerschaftskontrollen/">Schwangerschaftskontrollen</a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wyldfyre@PITSWS190:~/temp$ python ObservableImplementation.py | |
| Test Single Observer [Generic] | |
| Invoked GenericObserver with arguments ('Hello', 'World', 'Test', 'Generic') {} | |
| Test Multiple Observers [Generic, Logger, Email, WhatsApp] | |
| Invoked GenericObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {} | |
| Invoked LoggerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {} | |
| Invoked EmailerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {} | |
| Invoked WhatsApperObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {} | |
| Test after removing Generic observer | |
| Invoked LoggerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Boot the package. We wire some signals to slots here. | |
| * | |
| * @param \TYPO3\Flow\Core\Bootstrap $bootstrap The current bootstrap | |
| * @return void | |
| */ | |
| public function boot(\TYPO3\Flow\Core\Bootstrap $bootstrap) { | |
| $dispatcher = $bootstrap->getSignalSlotDispatcher(); | |
| $dispatcher->connect( | |
| 'Test\Package\Controller\MigrationController', 'afterDatabaseMigration', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function logMigrationSuceededMessage() | |
| { | |
| $this->outputLine("Migration process completed successfully."); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function migrateCommand() | |
| { | |
| //Other program logic specific code (if needed) | |
| $this->emitAfterDatabaseMigration(); | |
| //Other program logic specific code (if needed) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @return void | |
| * @Flow\Signal | |
| */ | |
| protected function emitAfterDatabaseMigration() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ObservableEvent: | |
| def __init__(self): | |
| self.__observers = [] | |
| def register_observer(self, observer): | |
| self.__observers.append(observer) | |
| def de_register_observer(self, observer): | |
| self.__observers.remove(observer) | |
| def notify(self, *args, **kwargs): | |
| for observer in self.__observers: | |
| observer.trigger(*args, **kwargs) |