[BUGFIX] Remove XCLASS inclusion blocks from t3lib

After #31893 is merged we can remove the XCLASS blocks from the
Core. This patchset removes it from the classes within t3lib.

Besides that it declares t3lib_TimeTrackNull and t3lib_TimeTrack
to be final to make sure that extending them is still denied.

This patchset itself should not be merged before the related patch
for EXT:dbal (#31183) is merged.

Change-Id: I09e5253191972ac4b3b033aeb770758690ea3755
Fixes: #36184
Releases: 6.0
Reviewed-on: http://review.typo3.org/10556
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Fix old XCLASS deprecation log

The correct check for the old xclass register usage is to test for array
entry count greater than zero. Furthermore the comments have been improved.

Change-Id: I0ce923c3bb220872dfc6482e963240271408d9ec
Resolves: #36703
Releases: 6.0
Reviewed-on: http://review.typo3.org/10870
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] clickenlarge not working on images inserted by FAL-enabled RTE

Solution: Get original file from data-htmlarea-file-uid attribute

Change-Id: I5c4aef33bdcbe7c5badac9173480e33fb627b302
Releases: 6.0
Resolves: #36718
Reviewed-on: http://review.typo3.org/10894
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
[BUGFIX] Custom HTML tags no longer malformed in IE

Custom HTML tags would get malformed while editing in IE.
If a tag is not present in HTML4 and the document mode
of IE is lower than IE9 Standards, then the tag is not
present in the DOM and not parsed correctly.
This is fixed by specifying possible custom tags in TSconfig
and creating dummy instances of the tags before loading
the contents in the DOM, also known as the Shiv trick.

Change-Id: Ie9ee09947a88dd73f92c0330f5d0c15609a7efb3
Fixes: #34786
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: http://review.typo3.org/9743
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
[BUGFIX] Wrong TCEForms placeholder in sys_file_references

Due to a wrong TCA configuration, the placeholder feature in
content elements using images just shows the unresolved value
"__row|__foreign|name" instead of the correct title.

Change-Id: I7b574e1fb79a7bed02bb265671847449780ef0f4
Resolves: #36403
Releases: 6.0
Reviewed-on: http://review.typo3.org/10898
Reviewed-by: Ingmar Schlecht
Tested-by: Ingmar Schlecht
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[FEATURE] Allow t3lib as class prefix

Several parts in the Core require class names to start with
"tx_" or "user_", e.g. for working with user functions in a
particular context. The "t3lib_" prefix is simply missing
here...

Change-Id: I577ce61506f2dacb5805493d29296f1b84b46419
Resolves: #36779
Related: #36726
Releases: 6.0
Reviewed-on: http://review.typo3.org/10901
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Update sys_refindex to reflect img tags in RTE content

Problem: sys_refindex should be updated when an image is inserted or
removed from RTE content
Solution: Add rtehtmlarea_images softref key

Change-Id: I40d504adf3d51e55fd271d01656e9db3f285d7ad
Releases: 6.0
Resolves: #36789
Reviewed-on: http://review.typo3.org/10940
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
[FEATURE] Use FAL file properties as default image attributes in RTE

Use FAL file properties "name" and "alternative" as default values for
"title" and "alt" img tag attributes when inserting an image into the
RTE content.

Change-Id: If33bfbd26bea5e63e154cd4e042b327eb1e02199
Releases: 6.0
Resolves: #36796
Reviewed-on: http://review.typo3.org/10944
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
[BUGFIX] Unnecessary warning in css_styled_content (division by zero)

If tt_content.image.20.maxW is not set, PHP throws a warning about
division by zero. This is not necessary. After that the variable
$scale is not set. This patch checks if $netW is greater zero and
otherwise the else condition will set $scale to 1.

Change-Id: Icd876b33d543080e486e0184c8af34c9a3831738
Fixes: #36777
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/10928
Reviewed-by: Michael Klapper
Tested-by: Michael Klapper
Reviewed-by: Philipp Gampe
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
[BUGFIX] EM: misplaced tooltips

In the local list of extensions, the tooltips on the first two action
columns are misplaced. Tooltips from the second one override those
from the first one.

Change-Id: I24f02ff8b28a49e4649b7139d7d9ce196a6fceb8
Fixes: #36610
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/10810
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Francois Suter
Tested-by: Francois Suter
[BUGFIX] Adjustments to FAL-enabled RTE image and link dialogues

When no folder is selected, use $BE_USER->getDefaultUploadFolder().
Use the id of the base script so that the same styles are applied to
the window.
When enabled, move the folder creation form to the bottom of the
window.
Honour readonly filemounts.
Slightly increase the default opening width of the image dialogue.

Change-Id: I710e60ffe00125874532137422a4ee461b8850e7
Releases: 6.0
Resolves: #36815
Reviewed-on: http://review.typo3.org/10969
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
[FEATURE] Create RTE personal dictionary in default upload folder

In FAL-enabled RTE Spell Checker, create personal dictionary in the
backend user's default upload folder.

Change-Id: Ifad2612a5af1f447cc9cc9abdae6c140f3680a8d
Releases: 6.0
Resolves: #36818
Reviewed-on: http://review.typo3.org/10974
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
[BUGFIX] EM: improve action icons alignment

In both extensions list of the new EM (available and import), the
action icons are flush with the top of each table row. Instead
they should be aligned with the extension icon.

Change-Id: I49dd745c3b014af24c6a06b5d68e46418cc77e63
Fixes: #36611
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/10811
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Francois Suter
Tested-by: Francois Suter
[TASK] Remove XCLASS definitions from typo3/

Remove all XCLASS definitions in typo3/ and all system extension
that are not handled as git submodules.

Change-Id: Ib9e1d8db31f91f5f1453deb694f2441ef41130f2
Resolves: #36821
Related: #31893
Releases: 6.0
Reviewed-on: http://review.typo3.org/10981
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Remove broken and unused class

typo3/sysext/lowlevel/class.tx_lowlevel_cleaner.php was never
finished since TYPO3 4.0 and die()'s immediately. Remove it.

Change-Id: Id3030d396fac9c261e449c525f7756b569f37d2c
Resolves: #36824
Releases: 6.0
Reviewed-on: http://review.typo3.org/10982
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Add trailing slash to PAGEPATH

With issue #23828 the closing slash for PAGEPATH was removed.
If PAGEPATH in docheader is combined with PAGEINFO, there is now no
visible separation anymore. The patch re-introduces the missing slash.

Change-Id: I6f261179cfcdee7301bc8eaba47d722b973d8017
Resolves: #35216
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/9861
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[TASK] Clean up phpDoc comments in class template

* Provide correct parameter names in phpDoc
* Provide correct data types in phpDoc
* CGLify phpDoc (remove tabs)
* CGLify method signatures (the first line of the method)
* Corrected a few minor very obvious flaws

Change-Id: Ie474fe9009c73092b7323b06648eb2e988473cd9
Resolves: #34629
Releases: 6.0
Reviewed-on: http://review.typo3.org/9450
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Wrong query in RecordCollectionRepository

If t3lib_collection_RecordCollectionRepository::queryMultipleRecords()
is called without any argument the SQL statement is wrong since
t3lib_BEfunc::deleteClause() starts with "AND".

Change-Id: I96efb31d142e89968cfcfa66ba6d1fda570b8595
Fixes: #36841
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/10998
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[FEATURE] Add method findAll() to record collection repository

Change-Id: I44a58bdedc8be3a9be68af7d636f44628d014fce
Resolves: #36835
Releases: 6.0
Reviewed-on: http://review.typo3.org/10994
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[FEATURE] Add method getUid() to abstract record collection

Change-Id: Id39ff747779fcfeeb5f7b8b4af685cad1f9f05d7
Releases: 6.0
Resolves: #36839
Reviewed-on: http://review.typo3.org/10996
Reviewed-by: Ingmar Schlecht
Tested-by: Ingmar Schlecht