38 $GLOBALS[
'LANG']->includeLLFile(
'EXT:sv/Resources/Private/Language/locallang.xlf');
60 $help =
'<p class="help">' .
$GLOBALS[
'LANG']->getLL(
'report_explanation') .
'</p>';
61 $help .=
'<p class="help">' .
$GLOBALS[
'LANG']->getLL(
'externals_explanation') .
'</p><br />';
73 foreach ($services as $serviceType => $installedServices) {
87 $header =
'<h4>' . sprintf(
$GLOBALS[
'LANG']->getLL(
'service_type'), $serviceType) .
'</h4>';
89 <table cellspacing="1" cellpadding="2" border="0" class="tx_sv_reportlist services"> 90 <tr class="t3-row-header"> 91 <td style="width: 35%">' .
$GLOBALS[
'LANG']->getLL(
'service') .
'</td> 92 <td>' .
$GLOBALS[
'LANG']->getLL(
'priority') .
'</td> 93 <td>' .
$GLOBALS[
'LANG']->getLL(
'quality') .
'</td> 94 <td style="width: 35%">' .
$GLOBALS[
'LANG']->getLL(
'subtypes') .
'</td> 95 <td>' .
$GLOBALS[
'LANG']->getLL(
'os') .
'</td> 96 <td>' .
$GLOBALS[
'LANG']->getLL(
'externals') .
'</td> 97 <td>' .
$GLOBALS[
'LANG']->getLL(
'available') .
'</td> 99 foreach ($services as $serviceKey => $serviceInformation) {
105 return $header . $serviceList;
116 $serviceDescription =
' 117 <p class="service-header"> 118 <span class="service-title">' . $serviceInformation[
'title'] .
'</span> (' . $serviceInformation[
'extKey'] .
': ' . $serviceKey .
') 120 if (!empty($serviceInformation[
'description'])) {
121 $serviceDescription .=
'<p class="service-description">' . $serviceInformation[
'description'] .
'</p>';
123 $serviceSubtypes = $serviceInformation[
'serviceSubTypes'] ? implode(
', ', $serviceInformation[
'serviceSubTypes']) :
'-';
124 $serviceOperatingSystem = $serviceInformation[
'os'] ?:
$GLOBALS[
'LANG']->getLL(
'any');
125 $serviceRequiredExecutables = $serviceInformation[
'exec'] ?:
'-';
126 $serviceAvailabilityClass =
'typo3-message message-error';
127 $serviceAvailable =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:no');
130 if ($serviceDetails[
'available']) {
131 $serviceAvailabilityClass =
'typo3-message message-ok';
132 $serviceAvailable =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:yes');
134 }
catch (\
TYPO3\CMS\Core\Exception $e) {
139 <td class="first-cell ' . $serviceAvailabilityClass .
'">' . $serviceDescription .
'</td> 140 <td class="cell ' . $serviceAvailabilityClass .
'">' . $serviceInformation[
'priority'] .
'</td> 141 <td class="cell ' . $serviceAvailabilityClass .
'">' . $serviceInformation[
'quality'] .
'</td> 142 <td class="cell ' . $serviceAvailabilityClass .
'">' . $serviceSubtypes .
'</td> 143 <td class="cell ' . $serviceAvailabilityClass .
'">' . $serviceOperatingSystem .
'</td> 144 <td class="cell ' . $serviceAvailabilityClass .
'">' . $serviceRequiredExecutables .
'</td> 145 <td class="last-cell ' . $serviceAvailabilityClass .
'">' . $serviceAvailable .
'</td> 157 $content =
'<br /><h3 class="divider">' .
$GLOBALS[
'LANG']->getLL(
'search_paths') .
'</h3>';
158 if (count($searchPaths) == 0) {
159 $content .=
'<p>' .
$GLOBALS[
'LANG']->getLL(
'no_search_paths') .
'</p>';
162 <table cellspacing="1" cellpadding="2" border="0" class="tx_sv_reportlist paths"> 164 <tr class="t3-row-header"> 165 <td>' .
$GLOBALS[
'LANG']->getLL(
'path') .
'</td> 166 <td>' .
$GLOBALS[
'LANG']->getLL(
'valid') .
'</td> 170 foreach ($searchPaths as $path => $isValid) {
171 $pathAccessibleClass =
'typo3-message message-error';
172 $pathAccessible =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:no');
174 $pathAccessibleClass =
'typo3-message message-ok';
175 $pathAccessible =
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:yes');
180 <td class="last-cell ' . $pathAccessibleClass .
'">' . $pathAccessible .
'</td> 204 $filteredServices = array();
205 foreach (
$GLOBALS[
'T3_SERVICES'] as $serviceType => $serviceList) {
208 if (key($serviceList) !== $serviceType) {
209 uasort($serviceList, array($this,
'sortServices'));
210 $filteredServices[$serviceType] = $serviceList;
213 return $filteredServices;
227 if ($a[
'priority'] == $b[
'priority']) {
228 if ($a[
'quality'] != $b[
'quality']) {
231 $result = $a[
'quality'] > $b[
'quality'] ? -1 : 1;
236 $result = $a[
'priority'] > $b[
'priority'] ? -1 : 1;
sortServices(array $a, array $b)
renderServiceTypeList($serviceType, $services)
__construct(\TYPO3\CMS\Reports\Controller\ReportController $reportsModule)
static findServiceByKey($serviceKey)
renderExecutablesSearchPathList()
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
static fixWindowsFilePath($theFile)
static getPaths($addInvalid=FALSE)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
renderServiceRow($serviceKey, $serviceInformation)