null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
29982570
3.2 Hooks, Signals/Slots and XCLASSes
Description
TYPO3 CD 2020 (zweite Auflage) Quiz on 3.2 Hooks, Signals/Slots and XCLASSes, created by Pascal Bartl on 29/03/2021.
No tags specified
typo3 cd 2020 (zweite auflage)
Quiz by
Pascal Bartl
, updated more than 1 year ago
More
Less
Created by
Pascal Bartl
over 3 years ago
8
0
0
Resource summary
Question 1
Question
What are “signals/slots” and how do you use them? (2)
Answer
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
Question 2
Question
What are “signals”? (1)
Answer
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
Question 3
Question
What are typical benefits of “signals/slots”? (2)
Answer
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
Question 4
Question
How do you connect a slot to a signal when using TYPO3’s SignalSlotDispatcher? (1)
Answer
join()
connect()
attach()
insert()
slot()
Question 5
Question
Which statements about XCLASSes are correct? (2)
Answer
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
Question 6
Question
What are typical limitations of XCLASSes? (3)
Answer
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
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
Macbeth Quiz
PatrickNoonan
Lord of the Flies
lmg719
AQA GCSE Biology genetic variation
Olivia Phillips
Cell Organelles and Functions
Melinda Colby
GCSE AQA Biology 1 Cloning & Genetic Engineering
Lilac Potato
Function and Structure of DNA
Elena Cade
GCSE Computing : OCR Computing Course Revision
RoryOMoore
Basic Korean Verbs
ASHISH AWALGAONKAR
Topic
TEL Bath
Core 1.10 Polymers (Plastics)
T Andrews
NSI Course
Yuvraj Sunar
Browse Library