Test
3.2 Hooks, Signals/Slots and XCLASSes
Preguntas del test (6)
1What are “signals/slots” and how do you use them? (2)
- ASignals notify developers about security risks in their code
- BThe signal/slot concept can be used to extend TYPO3 core functionality
- CThe signal/slot dispatcher is required to emit a signal
- DSlots are an abstract instance of a signal class
2What are “signals”? (1)
- ASignals are classes located in directory Classes/Signals/
- BSignals are used to write entries to the internal log
- CSignals are building blocks for domain driven design
- DSignals are used to connect external data sources to Extbase
- ESignals are emitted by the TYPO3 core or by extensions to extend existing functionality
3What are typical benefits of “signals/slots”? (2)
- ASignals/slots extend the TYPO3 core without the need to edit core files
- BSignals/slots are meant to simulate SQL procedures using pure PHP code
- CSignals are never marked deprecated and will remain in the TYPO3 core forever
- DOne signal can trigger multiple slots
4How do you connect a slot to a signal when using TYPO3’s SignalSlotDispatcher? (1)
- Ajoin()
- Bconnect()
- Cattach()
- Dinsert()
- Eslot()
5Which statements about XCLASSes are correct? (2)
- AXCLASSes prevent cross-site scripting (XSS) attacks
- BXCLASSes extend core classes and/or overwrite core methods
- CXCLASSes need to be registered in the file Configuration/Overrides/xclasses.php
- DXCLASSes need to be registered in the following global array:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'] - EXCLASSes replace files from TYPO3 source package which possibly impacts the TYPO3 update process
6What are typical limitations of XCLASSes? (3)
- AXCLASSes only work on core classes that are instantiated using the GeneralUtility::makeInstance() method
- BXCLASSes do not work on static classes, static methods or final classes
- CThere can only by one XCLASS per base class
- DXCLASSes only work in Composer-based TYPO3 installations
- EThe visibility of all properties of an XCLASS must be private
Información
- Descripción
- El usuario ha eliminado su información de asignaturas Test sobre 3.2 Hooks, Signals/Slots and XCLASSes, creado por Usuario eliminado el 27/04/2022.
- Autor
- Usuario eliminado
- Idioma
- English
- Visitas
- 19
- Historial
- Creado el 27 abr 2022 · actualizado el 27 abr 2022
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test