3.2 Hooks, Signals/Slots and XCLASSes

Descripción

TYPO3 CD 2020 (zweite Auflage) Test sobre 3.2 Hooks, Signals/Slots and XCLASSes, creado por Pascal Bartl el 29/03/2021.
Pascal Bartl
Test por Pascal Bartl, actualizado hace más de 1 año
Pascal Bartl
Creado por Pascal Bartl hace más de 3 años
7
0

Resumen del Recurso

Pregunta 1

Pregunta
What are “signals/slots” and how do you use them? (2)
Respuesta
  • Signals notify developers about security risks in their code
  • The signal/slot concept can be used to extend TYPO3 core functionality
  • The signal/slot dispatcher is required to emit a signal
  • Slots are an abstract instance of a signal class

Pregunta 2

Pregunta
What are “signals”? (1)
Respuesta
  • Signals are classes located in directory Classes/Signals/
  • Signals are used to write entries to the internal log
  • Signals are building blocks for domain driven design
  • Signals are used to connect external data sources to Extbase
  • Signals are emitted by the TYPO3 core or by extensions to extend existing functionality

Pregunta 3

Pregunta
What are typical benefits of “signals/slots”? (2)
Respuesta
  • Signals/slots extend the TYPO3 core without the need to edit core files
  • Signals/slots are meant to simulate SQL procedures using pure PHP code
  • Signals are never marked deprecated and will remain in the TYPO3 core forever
  • One signal can trigger multiple slots

Pregunta 4

Pregunta
How do you connect a slot to a signal when using TYPO3’s SignalSlotDispatcher? (1)
Respuesta
  • join()
  • connect()
  • attach()
  • insert()
  • slot()

Pregunta 5

Pregunta
Which statements about XCLASSes are correct? (2)
Respuesta
  • XCLASSes prevent cross-site scripting (XSS) attacks
  • XCLASSes extend core classes and/or overwrite core methods
  • XCLASSes need to be registered in the file Configuration/Overrides/xclasses.php
  • XCLASSes need to be registered in the following global array: $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']
  • XCLASSes replace files from TYPO3 source package which possibly impacts the TYPO3 update process

Pregunta 6

Pregunta
What are typical limitations of XCLASSes? (3)
Respuesta
  • XCLASSes only work on core classes that are instantiated using the GeneralUtility::makeInstance() method
  • XCLASSes do not work on static classes, static methods or final classes
  • There can only by one XCLASS per base class
  • XCLASSes only work in Composer-based TYPO3 installations
  • The visibility of all properties of an XCLASS must be private
Mostrar resumen completo Ocultar resumen completo

Similar

Apuntes para Aprender Inglés
maya velasquez
Listenings para el FCE
Diego Santos
TEORÍA DE LA PERSONALIDAD según Freud
Erika Alexandra 1467
Linea del tiempo Ciencia
erick romero
PLASTICIDAD CEREBRAL
Kareen Gatica
Sistema Nervioso
Carlos Enrique Armas Montoro
DALÍ...
JL Cadenas
MANUAL DE MUSCULOS DE MIEMBRO SUPERIOR
cristian felipe pèrez cruz
MESOPOTAMIA
Txemi López
Test Estructuras IV: Tipo de estructuras
Pedro Landín