@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $this->setArrayToJson($aReturn); |
58 | 58 | } |
59 | 59 | $aReturn = $this->getContentFromUrlThroughCurlRawArray($fullURL, $features); |
60 | - return '{ ' . $this->packIntoJson($aReturn, 'info') . ', ' . $this->packIntoJson($aReturn, 'response') . ' }'; |
|
60 | + return '{ '.$this->packIntoJson($aReturn, 'info').', '.$this->packIntoJson($aReturn, 'response').' }'; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | return '<div>No MySQL connection detected</div>'; |
118 | 118 | } |
119 | 119 | $afRows = $this->mySQLconnection->affected_rows; |
120 | - return '<div>' . sprintf($this->lclMsgCmnNumber('i18n_Record', 'i18n_Records', $afRows), $afRows) . '</div>'; |
|
120 | + return '<div>'.sprintf($this->lclMsgCmnNumber('i18n_Record', 'i18n_Records', $afRows), $afRows).'</div>'; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -189,9 +189,9 @@ discard block |
||
189 | 189 | private function packIntoJson($aReturn, $keyToWorkWith) |
190 | 190 | { |
191 | 191 | if ($this->isJsonByDanielGP($aReturn[$keyToWorkWith])) { |
192 | - return '"' . $keyToWorkWith . '": ' . $aReturn[$keyToWorkWith]; |
|
192 | + return '"'.$keyToWorkWith.'": '.$aReturn[$keyToWorkWith]; |
|
193 | 193 | } |
194 | - return '"' . $keyToWorkWith . '": {' . $aReturn[$keyToWorkWith] . ' }'; |
|
194 | + return '"'.$keyToWorkWith.'": {'.$aReturn[$keyToWorkWith].' }'; |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | { |
206 | 206 | $postingUrl = filter_var($urlToSendTo, FILTER_VALIDATE_URL); |
207 | 207 | if ($postingUrl === false) { |
208 | - throw new \Exception('Invalid URL in ' . __FUNCTION__); |
|
208 | + throw new \Exception('Invalid URL in '.__FUNCTION__); |
|
209 | 209 | } |
210 | 210 | if (is_array($params)) { |
211 | 211 | $cntFailErrMsg = $this->lclMsgCmn('i18n_Error_FailedToConnect'); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } |
226 | 226 | $flPointer = fsockopen($pUrlParts['host'], $postingPort, $erN, $erM, 30); |
227 | 227 | if ($flPointer === false) { |
228 | - throw new \Exception($cntFailErrMsg . ': ' . $erN . ' (' . $erM . ')'); |
|
228 | + throw new \Exception($cntFailErrMsg.': '.$erN.' ('.$erM.')'); |
|
229 | 229 | } |
230 | 230 | fwrite($flPointer, $this->sendBackgroundPrepareData($pUrlParts, $postingString)); |
231 | 231 | fclose($flPointer); |
@@ -235,12 +235,12 @@ discard block |
||
235 | 235 | { |
236 | 236 | $this->initializeSprGlbAndSession(); |
237 | 237 | $out = []; |
238 | - $out[] = 'POST ' . $pUrlParts['path'] . ' ' . $this->tCmnSuperGlobals->server->get['SERVER_PROTOCOL']; |
|
239 | - $out[] = 'Host: ' . $pUrlParts['host']; |
|
240 | - $out[] = 'User-Agent: ' . $this->getUserAgentByCommonLib(); |
|
238 | + $out[] = 'POST '.$pUrlParts['path'].' '.$this->tCmnSuperGlobals->server->get['SERVER_PROTOCOL']; |
|
239 | + $out[] = 'Host: '.$pUrlParts['host']; |
|
240 | + $out[] = 'User-Agent: '.$this->getUserAgentByCommonLib(); |
|
241 | 241 | $out[] = 'Content-Type: application/x-www-form-urlencoded'; |
242 | - $out[] = 'Content-Length: ' . strlen($postingString); |
|
243 | - $out[] = 'Connection: Close' . "\r\n"; |
|
242 | + $out[] = 'Content-Length: '.strlen($postingString); |
|
243 | + $out[] = 'Connection: Close'."\r\n"; |
|
244 | 244 | $out[] = $postingString; |
245 | 245 | return implode("\r\n", $out); |
246 | 246 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $sReturn[] = 'submit();'; |
83 | 83 | } |
84 | 84 | if (is_array($sReturn)) { |
85 | - return ' onchange="javascript:' . implode('', $sReturn) . '"'; |
|
85 | + return ' onchange="javascript:'.implode('', $sReturn).'"'; |
|
86 | 86 | } |
87 | 87 | return $sReturn; |
88 | 88 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ]; |
100 | 100 | if (array_key_exists($identifier, $featArray)) { |
101 | 101 | if (is_null($translation[$identifier])) { |
102 | - return ' ' . $identifier . '="' . $featArray[$identifier] . '"'; |
|
102 | + return ' '.$identifier.'="'.$featArray[$identifier].'"'; |
|
103 | 103 | } |
104 | 104 | return $translation[$identifier]; |
105 | 105 | } |
@@ -124,15 +124,15 @@ discard block |
||
124 | 124 | $ftArray = []; |
125 | 125 | } |
126 | 126 | $featArray = $this->normalizeFeatureArray($ftArray); |
127 | - return '<select name="' . $selectName . '" ' |
|
128 | - . 'id="' . $this->buildSelectId($selectName, $featArray) . '" ' |
|
129 | - . 'size="' . $this->calculateSelectOptionsSize($aElements, $featArray) . '"' |
|
127 | + return '<select name="'.$selectName.'" ' |
|
128 | + . 'id="'.$this->buildSelectId($selectName, $featArray).'" ' |
|
129 | + . 'size="'.$this->calculateSelectOptionsSize($aElements, $featArray).'"' |
|
130 | 130 | . $this->eventOnChange($featArray) |
131 | 131 | . $this->featureArraySimpleTranslated($featArray, 'disabled') |
132 | 132 | . $this->featureArraySimpleTranslated($featArray, 'hidden') |
133 | 133 | . $this->featureArraySimpleTranslated($featArray, 'multiselect') |
134 | 134 | . $this->featureArraySimpleTranslated($featArray, 'style') |
135 | - . '>' . $this->setOptionsForSelect($aElements, $sDefaultValue, $featArray) . '</select>'; |
|
135 | + . '>'.$this->setOptionsForSelect($aElements, $sDefaultValue, $featArray).'</select>'; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | private function setOptionGroupEnd($crtGroup, $featArray) |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | if ($crtGroup != $tempString) { |
154 | 154 | $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray); |
155 | 155 | $crtGroup = $tempString; |
156 | - $sReturn[] = '<optgroup label="' . str_replace($featArray['grouping'], '', $crtGroup) . '">'; |
|
156 | + $sReturn[] = '<optgroup label="'.str_replace($featArray['grouping'], '', $crtGroup).'">'; |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 | return ['crtGroup' => $crtGroup, 'groupFooterHeader' => implode('', $sReturn)]; |
@@ -190,11 +190,11 @@ discard block |
||
190 | 190 | $aFH = $this->setOptionGroupFooterHeader($featArray, $value, $crtGroup); |
191 | 191 | $crtGroup = $aFH['crtGroup']; |
192 | 192 | $sReturn[] = $aFH['groupFooterHeader'] |
193 | - . '<option value="' . $key . '"' . $this->setOptionSelected($key, $sDefaultValue) |
|
194 | - . $this->featureArraySimpleTranslated($featArray, 'styleForOption') . '>' |
|
195 | - . str_replace(['&', $crtGroup], ['&', ''], $value) . '</option>'; |
|
193 | + . '<option value="'.$key.'"'.$this->setOptionSelected($key, $sDefaultValue) |
|
194 | + . $this->featureArraySimpleTranslated($featArray, 'styleForOption').'>' |
|
195 | + . str_replace(['&', $crtGroup], ['&', ''], $value).'</option>'; |
|
196 | 196 | } |
197 | 197 | $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray); |
198 | - return $this->featureArraySimpleTranslated($featArray, 'include_null') . implode('', $sReturn); |
|
198 | + return $this->featureArraySimpleTranslated($featArray, 'include_null').implode('', $sReturn); |
|
199 | 199 | } |
200 | 200 | } |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | if ($dtl['COLUMN_NAME'] == 'host') { |
53 | 53 | $inVl = gethostbyaddr($this->tCmnRequest->server->get('REMOTE_ADDR')); |
54 | 54 | return [ |
55 | - 'label' => '<label for="' . $dtl['COLUMN_NAME'] . '">Numele calculatorului</label>', |
|
56 | - 'input' => '<input type="text" name="host" size="15" readonly value="' . $inVl . '" />', |
|
55 | + 'label' => '<label for="'.$dtl['COLUMN_NAME'].'">Numele calculatorului</label>', |
|
56 | + 'input' => '<input type="text" name="host" size="15" readonly value="'.$inVl.'" />', |
|
57 | 57 | ]; |
58 | 58 | } |
59 | 59 | $result = $this->setFieldInput($tableSource, $dtl, $features); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | if ($dtl['COLUMN_NAME'] == 'ChoiceId') { |
74 | 74 | return '<input type="text" name="ChoiceId" value="' |
75 | - . $this->tCmnRequest->request->get($dtl['COLUMN_NAME']) . '" />'; |
|
75 | + . $this->tCmnRequest->request->get($dtl['COLUMN_NAME']).'" />'; |
|
76 | 76 | } |
77 | 77 | return $this->setNeededFieldByType($tableSource, $dtl, $features); |
78 | 78 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | } |
102 | 102 | $frmFtrs = ['id' => $feat['id'], 'action' => $feat['action'], 'method' => $feat['method']]; |
103 | - return $this->setStringIntoTag(implode('', $sReturn) . $this->setFormButtons($feat, $hdnInf), 'form', $frmFtrs) |
|
103 | + return $this->setStringIntoTag(implode('', $sReturn).$this->setFormButtons($feat, $hdnInf), 'form', $frmFtrs) |
|
104 | 104 | . $this->setFormJavascriptFinal($feat['id']); |
105 | 105 | } |
106 | 106 | |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | { |
148 | 148 | $sReturn = $this->setField($tableSource, $details, $features, $fieldLabel); |
149 | 149 | $lmts = $this->setFieldNumbers($details); |
150 | - return '<div>' . $sReturn['label'] |
|
150 | + return '<div>'.$sReturn['label'] |
|
151 | 151 | . $this->setStringIntoTag($sReturn['input'], 'span', ['class' => 'labell']) |
152 | 152 | . '<span style="font-size:x-small;font-style:italic;"> (max. ' |
153 | - . $lmts['M'] . (isset($lmts['d']) ? ' w. ' . $lmts['d'] . ' decimals' : '') . ')</span>' |
|
153 | + . $lmts['M'].(isset($lmts['d']) ? ' w. '.$lmts['d'].' decimals' : '').')</span>' |
|
154 | 154 | . '</div>'; |
155 | 155 | } |
156 | 156 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | '$(this).remove();', |
177 | 177 | '});', |
178 | 178 | ])); |
179 | - return '<div id="DeleteFeedback">' . $sReturn . '</div>' . $finalJavascript; |
|
179 | + return '<div id="DeleteFeedback">'.$sReturn.'</div>'.$finalJavascript; |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $idFldVal = $this->tCmnSuperGlobals->query->get($idn); |
197 | 197 | $this->setMySQLquery2Server($this->sQueryToDeleteSingleIdentifier([$tbl, $idn, $idFldVal])); |
198 | 198 | $sReturn = $this->setFeedbackModern('error', $tMsg['Confirmation'], $tMsg['Failed']) |
199 | - . '(' . $this->mySQLconnection->error . ')'; |
|
199 | + . '('.$this->mySQLconnection->error.')'; |
|
200 | 200 | if ($this->mySQLconnection->affected_rows > 0) { |
201 | 201 | $sReturn = $this->setFeedbackModern('check', $tMsg['Confirmation'], $tMsg['Success']); |
202 | 202 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | protected function getFieldNameForDisplay($details) |
67 | 67 | { |
68 | - $tableUniqueId = $details['TABLE_SCHEMA'] . '.' . $details['TABLE_NAME']; |
|
68 | + $tableUniqueId = $details['TABLE_SCHEMA'].'.'.$details['TABLE_NAME']; |
|
69 | 69 | if ($details['COLUMN_COMMENT'] != '') { |
70 | 70 | return $details['COLUMN_COMMENT']; |
71 | 71 | } elseif (isset($this->advCache['tableStructureLocales'][$tableUniqueId][$details['COLUMN_NAME']])) { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | $vlSlct = explode(',', $this->getFieldValue($val)); |
97 | 97 | $slctOptns = $this->getSetOrEnum2Array($tblSrc, $val['COLUMN_NAME']); |
98 | - return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'] . $adnlThings['suffix'], $inAdtnl); |
|
98 | + return $this->setArrayToSelect($slctOptns, $vlSlct, $val['COLUMN_NAME'].$adnlThings['suffix'], $inAdtnl); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | if ($iar !== []) { |
142 | 142 | $inAdtnl = array_merge($inAdtnl, $iar); |
143 | 143 | } |
144 | - return '<b>' . $this->getFieldValue($value) . '</b>' . $this->setStringIntoShortTag('input', $inAdtnl); |
|
144 | + return '<b>'.$this->getFieldValue($value).'</b>'.$this->setStringIntoShortTag('input', $inAdtnl); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -154,8 +154,8 @@ discard block |
||
154 | 154 | */ |
155 | 155 | private function getFieldOutputNumericNonFK($fkArray, $value, $iar = []) |
156 | 156 | { |
157 | - $query = $this->sQueryGenericSelectKeyValue([ |
|
158 | - '`' . $value['COLUMN_NAME'] . '`', |
|
157 | + $query = $this->sQueryGenericSelectKeyValue([ |
|
158 | + '`'.$value['COLUMN_NAME'].'`', |
|
159 | 159 | $fkArray[$value['COLUMN_NAME']][2], |
160 | 160 | $fkArray[$value['COLUMN_NAME']][0], |
161 | 161 | ]); |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | if ($val[$cnm[0]] == $oCol) { |
297 | 297 | $vlQ = array_merge($val, ['LIMIT' => 2]); |
298 | 298 | $tFd = $this->setMySQLquery2Server($this->getForeignKeysQuery($vlQ), $cnm[1])['result']; |
299 | - $tgtFld = '`' . ($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]) . '`'; |
|
299 | + $tgtFld = '`'.($tFd[0][$cnm[0]] == $val[$cnm[0]] ? $tFd[1][$cnm[0]] : $tFd[0][$cnm[0]]).'`'; |
|
300 | 300 | $aRt[$oCol] = [$this->glueDbTb($val[$cnm[2]], $val[$cnm[3]]), $val[$cnm[2]], $tgtFld]; |
301 | 301 | } |
302 | 302 | } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $inM = $this->setStringIntoTag($mCN[$dtl['COLUMN_NAME']], 'span', ['style' => 'font-style:italic;']); |
348 | 348 | } |
349 | 349 | } |
350 | - $lbl = '<span class="fake_label">' . $this->getFieldNameForDisplay($dtl) . '</span>'; |
|
350 | + $lbl = '<span class="fake_label">'.$this->getFieldNameForDisplay($dtl).'</span>'; |
|
351 | 351 | return ['label' => $lbl, 'input' => $inM]; |
352 | 352 | } |
353 | 353 | |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | } elseif (in_array($dtls['DATA_TYPE'], ['date', 'datetime', 'time', 'timestamp', 'year'])) { |
364 | 364 | $sReturn = $this->setNeededFieldSingleType($tblName, $dtls, $iar); |
365 | 365 | } |
366 | - return $this->getFieldCompletionType($dtls) . $sReturn; |
|
366 | + return $this->getFieldCompletionType($dtls).$sReturn; |
|
367 | 367 | } |
368 | 368 | |
369 | 369 | private function setNeededFieldSingleType($tblName, $dtls, $iar) |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | protected function glueDbTb($dbName, $tbName) |
125 | 125 | { |
126 | - return '`' . $dbName . '`.`' . $tbName . '`'; |
|
126 | + return '`'.$dbName.'`.`'.$tbName.'`'; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | private function handleFeaturesSingle($fieldName, $features, $featureKey) |
156 | 156 | { |
157 | - $fMap = [ |
|
157 | + $fMap = [ |
|
158 | 158 | 'readonly' => ['readonly', 'class', 'input_readonly'], |
159 | 159 | 'disabled' => ['disabled'] |
160 | 160 | ]; |
@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | */ |
69 | 69 | private function listOfMySQLqueryLanguageType($qType) |
70 | 70 | { |
71 | - $keyForReturn = 'Type ' . $qType . ' stands for'; |
|
71 | + $keyForReturn = 'Type '.$qType.' stands for'; |
|
72 | 72 | $vMap = ['DCL', 'DDL', 'DML', 'DQL', 'DTL']; |
73 | 73 | if (in_array($qType, $vMap)) { |
74 | 74 | $valForReturn = $this->readTypeFromJsonFile('MySQLiLanguageTypes')[$qType]; |
75 | - return [$keyForReturn => $valForReturn[0] . ' (' . $valForReturn[1] . ')']; |
|
75 | + return [$keyForReturn => $valForReturn[0].' ('.$valForReturn[1].')']; |
|
76 | 76 | } |
77 | 77 | return [$keyForReturn => 'unknown']; |
78 | 78 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | private function readTypeFromJsonFile($fileBaseName) |
99 | 99 | { |
100 | - $fName = __DIR__ . DIRECTORY_SEPARATOR . 'json' . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json'; |
|
100 | + $fName = __DIR__.DIRECTORY_SEPARATOR.'json'.DIRECTORY_SEPARATOR.$fileBaseName.'.min.json'; |
|
101 | 101 | $fJson = fopen($fName, 'r'); |
102 | 102 | $jSonContent = fread($fJson, filesize($fName)); |
103 | 103 | fclose($fJson); |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | 'File Group' => $info->getGroup(), |
74 | 74 | 'File Inode' => $info->getInode(), |
75 | 75 | 'File Link Target' => ($info->isLink() ? $info->getLinkTarget() : '-'), |
76 | - 'File Name' => $info->getBasename('.' . $info->getExtension()), |
|
76 | + 'File Name' => $info->getBasename('.'.$info->getExtension()), |
|
77 | 77 | 'File Name w. Extension' => $info->getFilename(), |
78 | 78 | 'File Owner' => $info->getOwner(), |
79 | 79 | 'File Path' => $info->getPath(), |
80 | 80 | 'Name' => $info->getRealPath(), |
81 | 81 | 'Type' => $info->getType(), |
82 | 82 | ]; |
83 | - $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
83 | + $aDetails = array_merge($aFileBasicDetails, $this->getFileDetailsRawStatistic($info, $fileGiven)); |
|
84 | 84 | ksort($aDetails); |
85 | 85 | return $aDetails; |
86 | 86 | } |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | $sFiles = []; |
128 | 128 | foreach ($iterator as $file) { |
129 | 129 | $relativePathFile = str_replace($sourcePath, '', $file->getRealPath()); |
130 | - if (!file_exists($targetPath . $relativePathFile)) { |
|
131 | - $sFiles[$relativePathFile] = $targetPath . $relativePathFile; |
|
130 | + if (!file_exists($targetPath.$relativePathFile)) { |
|
131 | + $sFiles[$relativePathFile] = $targetPath.$relativePathFile; |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 | return $this->setArrayToJson($sFiles); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | protected function getFieldOutputEnumSetReadOnly($val, $adnlThings) |
49 | 49 | { |
50 | 50 | $inputFeatures = [ |
51 | - 'name' => $val['COLUMN_NAME'] . $adnlThings['suffix'], |
|
51 | + 'name' => $val['COLUMN_NAME'].$adnlThings['suffix'], |
|
52 | 52 | 'id' => $val['COLUMN_NAME'], |
53 | 53 | 'readonly' => 'readonly', |
54 | 54 | 'class' => 'input_readonly', |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | protected function setFieldLabel($details, $features, $fieldLabel) |
130 | 130 | { |
131 | - $aLabel = ['for' => $details['COLUMN_NAME'], 'id' => $details['COLUMN_NAME'] . '_label']; |
|
131 | + $aLabel = ['for' => $details['COLUMN_NAME'], 'id' => $details['COLUMN_NAME'].'_label']; |
|
132 | 132 | if (isset($features['disabled'])) { |
133 | 133 | if (in_array($details['COLUMN_NAME'], $features['disabled'])) { |
134 | 134 | $aLabel = array_merge($aLabel, ['style' => 'color: grey;']); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | private function setFldLmtsExact($dTp, $cTp) |
188 | 188 | { |
189 | - $xct = [ |
|
189 | + $xct = [ |
|
190 | 190 | 'bigint' => ['l' => -9223372036854775808, 'L' => 999999999999, 's' => 21, 'sUS' => 20], |
191 | 191 | 'int' => ['l' => -2147483648, 'L' => 2147483647, 's' => 11, 'sUS' => 10], |
192 | 192 | 'mediumint' => ['l' => -8388608, 'L' => 8388607, 's' => 9, 'sUS' => 8], |
@@ -214,16 +214,16 @@ discard block |
||
214 | 214 | { |
215 | 215 | $btn = []; |
216 | 216 | $btn[] = '<input type="submit" id="submit" style="margin-left:220px;" value="' |
217 | - . $this->lclMsgCmn('i18n_Form_ButtonSave') . '" />'; |
|
217 | + . $this->lclMsgCmn('i18n_Form_ButtonSave').'" />'; |
|
218 | 218 | if (isset($feat['insertAndUpdate'])) { |
219 | 219 | $btn[] = '<input type="hidden" id="insertAndUpdate" name="insertAndUpdate" value="insertAndUpdate" />'; |
220 | 220 | } |
221 | 221 | if ($hiddenInfo != []) { |
222 | 222 | foreach ($hiddenInfo as $key => $value) { |
223 | - $btn[] = '<input type="hidden" id="' . $key . '" name="' . $key . '" value="' . $value . '" />'; |
|
223 | + $btn[] = '<input type="hidden" id="'.$key.'" name="'.$key.'" value="'.$value.'" />'; |
|
224 | 224 | } |
225 | 225 | } |
226 | - return '<div>' . implode('', $btn) . '</div>'; |
|
226 | + return '<div>'.implode('', $btn).'</div>'; |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | protected function setMySQLqueryValidateInputs($prm) |
@@ -232,17 +232,17 @@ discard block |
||
232 | 232 | if (array_key_exists($prm['returnType'], $rMap)) { |
233 | 233 | $elC = [$prm['NoOfRows'], $rMap[$prm['returnType']]['r'][0], $rMap[$prm['returnType']]['r'][1]]; |
234 | 234 | if (filter_var($elC[0], FILTER_VALIDATE_INT, ['min_range' => $elC[1], 'max_range' => $elC[2]]) === false) { |
235 | - $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$prm['returnType']][2]); |
|
235 | + $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$prm['returnType']][2]); |
|
236 | 236 | return [false, sprintf($msg, $prm['NoOfColumns'])]; |
237 | 237 | } |
238 | 238 | $elR = [$prm['NoOfColumns'], $rMap[$prm['returnType']]['c'][0], $rMap[$prm['returnType']]['c'][1]]; |
239 | 239 | if (filter_var($elR[0], FILTER_VALIDATE_INT, ['min_range' => $elR[1], 'max_range' => $elR[2]])) { |
240 | 240 | return [true, '']; |
241 | 241 | } |
242 | - $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected' . $rMap[$prm['returnType']][1]); |
|
242 | + $msg = $this->lclMsgCmn('i18n_MySQL_QueryResultExpected'.$rMap[$prm['returnType']][1]); |
|
243 | 243 | return [false, sprintf($msg, $prm['NoOfColumns'])]; |
244 | 244 | } |
245 | - return [false, $prm['returnType'] . ' is not defined!']; |
|
245 | + return [false, $prm['returnType'].' is not defined!']; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | private function setMySQLqueryValidationMap() |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'class' => 'input_readonly', |
77 | 77 | 'value' => $sDefaultValue, |
78 | 78 | ]; |
79 | - return $this->setStringIntoShortTag('input', $inputFeatures) . $aElements[$sDefaultValue]; |
|
79 | + return $this->setStringIntoShortTag('input', $inputFeatures).$aElements[$sDefaultValue]; |
|
80 | 80 | } |
81 | 81 | return $this->setArrayToSelectNotReadOnly($aElements, $sDefaultValue, $selectName, $featArray); |
82 | 82 | } |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | $ditTitle .= ' (0)'; |
123 | 123 | } |
124 | 124 | $divTab = [ |
125 | - 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">', |
|
125 | + 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">', |
|
126 | 126 | 'end' => '</div><!-- from tab_NoData -->', |
127 | 127 | ]; |
128 | 128 | if (!isset($ftrs['noGlobalTab'])) { |
129 | 129 | $divTab = [ |
130 | - 'start' => '<div class="tabber" id="tab">' . $divTab['start'], |
|
131 | - 'end' => $divTab['end'] . '</div><!-- from global Tab -->', |
|
130 | + 'start' => '<div class="tabber" id="tab">'.$divTab['start'], |
|
131 | + 'end' => $divTab['end'].'</div><!-- from global Tab -->', |
|
132 | 132 | ]; |
133 | 133 | } |
134 | 134 | } |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | } |
152 | 152 | $checkboxFormId = ''; |
153 | 153 | if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) { |
154 | - $checkboxFormId = 'frm' . date('YmdHis'); |
|
155 | - $sReturn .= '<form id="' . $checkboxFormId . '" name="' . $checkboxFormId |
|
156 | - . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >'; |
|
154 | + $checkboxFormId = 'frm'.date('YmdHis'); |
|
155 | + $sReturn .= '<form id="'.$checkboxFormId.'" name="'.$checkboxFormId |
|
156 | + . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >'; |
|
157 | 157 | } |
158 | 158 | $tbl = []; |
159 | 159 | $tbl['Def'] = '<table' |
160 | - . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '') |
|
161 | - . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '') |
|
160 | + . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '') |
|
161 | + . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '') |
|
162 | 162 | . '>'; |
163 | 163 | if (!isset($ftrs['grouping_cell_type'])) { |
164 | 164 | $ftrs['grouping_cell_type'] = 'row'; |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $sReturn .= $tbl['Head']; |
199 | 199 | } |
200 | 200 | if (isset($iStartingPageRecord)) { |
201 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
201 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
202 | 202 | $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [ |
203 | 203 | 'colspan' => $iTableColumns |
204 | 204 | ]), 'tr'); |
@@ -240,22 +240,22 @@ discard block |
||
240 | 240 | } |
241 | 241 | $remebered_value = $color_column_value; |
242 | 242 | } |
243 | - $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"'; |
|
243 | + $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"'; |
|
244 | 244 | } else { |
245 | 245 | if (isset($ftrs['RowStyle'])) { |
246 | - $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"'; |
|
246 | + $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"'; |
|
247 | 247 | } else { |
248 | 248 | $color = ''; |
249 | 249 | } |
250 | 250 | } |
251 | - $tbl['tr_Color'] = '<tr' . $color . '>'; |
|
251 | + $tbl['tr_Color'] = '<tr'.$color.'>'; |
|
252 | 252 | // Grouping column |
253 | 253 | if (isset($ftrs['grouping_cell'])) { |
254 | 254 | foreach ($aElements[$rCntr] as $key => $value) { |
255 | 255 | if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) { |
256 | 256 | switch ($ftrs['grouping_cell_type']) { |
257 | 257 | case 'row': |
258 | - $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">' |
|
258 | + $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">' |
|
259 | 259 | . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded']) |
260 | 260 | . '</td></tr>'; |
261 | 261 | break; |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | } else { |
268 | 268 | $sReturn .= '</tbody></table>'; |
269 | 269 | if (isset($ftrs['showGroupingCounter'])) { |
270 | - $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
270 | + $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
271 | 271 | $groupCounter = 0; |
272 | 272 | } |
273 | 273 | $sReturn .= '</div>'; |
@@ -276,9 +276,9 @@ discard block |
||
276 | 276 | if (isset($ftrs['grouping_default_tab'])) { |
277 | 277 | $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : ''); |
278 | 278 | } |
279 | - $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" ' |
|
280 | - . 'title="' . $value . '">' |
|
281 | - . $tbl['Def'] . $tbl['Head'] . $tbl['Header']; |
|
279 | + $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" ' |
|
280 | + . 'title="'.$value.'">' |
|
281 | + . $tbl['Def'].$tbl['Head'].$tbl['Header']; |
|
282 | 282 | break; |
283 | 283 | } |
284 | 284 | $remindGroupValue = $value; |
@@ -292,12 +292,12 @@ discard block |
||
292 | 292 | } |
293 | 293 | } |
294 | 294 | } |
295 | - $sReturn .= $tbl['tr_Color']; |
|
295 | + $sReturn .= $tbl['tr_Color']; |
|
296 | 296 | // Action column |
297 | 297 | $checkboxName = ''; |
298 | 298 | $checkboxNameS = ''; |
299 | 299 | if (isset($ftrs['actions'])) { |
300 | - $sReturn .= '<td style="white-space:nowrap;">'; |
|
300 | + $sReturn .= '<td style="white-space:nowrap;">'; |
|
301 | 301 | $action_argument = 0; |
302 | 302 | if (isset($ftrs['actions']['key'])) { |
303 | 303 | $actionKey = $ftrs['actions']['key']; |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $actionKey = 'view'; |
306 | 306 | } |
307 | 307 | if (isset($ftrs['action_prefix'])) { |
308 | - $actPrfx = $ftrs['action_prefix'] . '&'; |
|
308 | + $actPrfx = $ftrs['action_prefix'].'&'; |
|
309 | 309 | $actionKey = 'view2'; |
310 | 310 | } else { |
311 | 311 | $actPrfx = ''; |
@@ -316,11 +316,11 @@ discard block |
||
316 | 316 | } |
317 | 317 | switch ($key) { |
318 | 318 | case 'checkbox': |
319 | - $checkboxName = $value . '[]'; |
|
319 | + $checkboxName = $value.'[]'; |
|
320 | 320 | $checkboxNameS = $value; |
321 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
322 | - . '" id="n' . $aElements[$rCntr][$value] |
|
323 | - . '" value="' . $aElements[$rCntr][$value] . '" '; |
|
321 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
322 | + . '" id="n'.$aElements[$rCntr][$value] |
|
323 | + . '" value="'.$aElements[$rCntr][$value].'" '; |
|
324 | 324 | if (isset($_REQUEST[$checkboxNameS])) { |
325 | 325 | if (is_array($_REQUEST[$checkboxNameS])) { |
326 | 326 | if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) { |
@@ -335,29 +335,29 @@ discard block |
||
335 | 335 | if (strpos($_REQUEST['view'], 'multiEdit') !== false) { |
336 | 336 | $sReturn .= 'disabled="disabled" '; |
337 | 337 | } |
338 | - $sReturn .= '/>'; |
|
338 | + $sReturn .= '/>'; |
|
339 | 339 | break; |
340 | 340 | case 'checkbox_inlineEdit': |
341 | - $checkboxName = $value . '[]'; |
|
341 | + $checkboxName = $value.'[]'; |
|
342 | 342 | $checkboxNameS = $value; |
343 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
344 | - . '" id="n' . $aElements[$rCntr][$value] . '" value="' |
|
345 | - . $aElements[$rCntr][$value] . '"/>'; |
|
343 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
344 | + . '" id="n'.$aElements[$rCntr][$value].'" value="' |
|
345 | + . $aElements[$rCntr][$value].'"/>'; |
|
346 | 346 | break; |
347 | 347 | case 'delete': |
348 | - $sReturn .= '<a href="#" onclick="javascript:setQuest(\'' . $value[0] . '\',\''; |
|
349 | - $iActArgs = count($value[1]); |
|
348 | + $sReturn .= '<a href="#" onclick="javascript:setQuest(\''.$value[0].'\',\''; |
|
349 | + $iActArgs = count($value[1]); |
|
350 | 350 | for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) { |
351 | - $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]]; |
|
351 | + $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]]; |
|
352 | 352 | } |
353 | - $sReturn .= '\');" id="' . $key . $rCntr . '"><i class="fa fa-times"> </i></a>'; |
|
353 | + $sReturn .= '\');" id="'.$key.$rCntr.'"><i class="fa fa-times"> </i></a>'; |
|
354 | 354 | break; |
355 | 355 | case 'edit': |
356 | 356 | case 'list2': |
357 | 357 | case 'schedule': |
358 | - $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
358 | + $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
359 | 359 | $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [ |
360 | - 'vIcon' => 'fa fa-' . $vIc, |
|
360 | + 'vIcon' => 'fa fa-'.$vIc, |
|
361 | 361 | 'aPrefix' => $actPrfx, |
362 | 362 | 'aKey' => $actionKey, |
363 | 363 | 'rCounter' => $rCntr, |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | switch ($value[1]) { |
386 | 386 | case '/': |
387 | 387 | // next variable is only to avoid a long line |
388 | - $shorter = [ |
|
388 | + $shorter = [ |
|
389 | 389 | $aElements[$rCntr][$value[3]], |
390 | 390 | $aElements[$rCntr][$value[4]], |
391 | 391 | ]; |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | break; |
394 | 394 | case '+': |
395 | 395 | // next variable is only to avoid a long line |
396 | - $iTemp = $this->setArrayValuesAsKey([ |
|
396 | + $iTemp = $this->setArrayValuesAsKey([ |
|
397 | 397 | $value[0], |
398 | 398 | $value[1], |
399 | 399 | $value[2] |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | } |
411 | 411 | if ($value[0] == '%') { |
412 | 412 | $rowComputed[$key] = ($aElements[$rCntr][$key] * 100); |
413 | - $dec -= 2; |
|
413 | + $dec -= 2; |
|
414 | 414 | } else { |
415 | 415 | $rowComputed[$key] = $aElements[$rCntr][$key]; |
416 | 416 | } |
@@ -422,59 +422,59 @@ discard block |
||
422 | 422 | $sReturn .= '</tr>'; |
423 | 423 | } |
424 | 424 | if (isset($iStartingPageRecord)) { |
425 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
426 | - $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>'; |
|
425 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
426 | + $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>'; |
|
427 | 427 | } |
428 | 428 | $sReturn .= '</tbody></table>'; |
429 | 429 | if ($ftrs['grouping_cell_type'] == 'tab') { |
430 | 430 | if (isset($ftrs['showGroupingCounter'])) { |
431 | 431 | $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
432 | 432 | } |
433 | - $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->'; |
|
433 | + $sReturn .= '</div><!-- from '.$remindGroupValue.' -->'; |
|
434 | 434 | if (!isset($ftrs['noGlobalTab'])) { |
435 | 435 | $sReturn .= '</div><!-- from global tab -->'; |
436 | 436 | } |
437 | 437 | } |
438 | 438 | if (isset($ftrs['actions']['checkbox'])) { |
439 | 439 | if (strpos($_REQUEST['view'], 'multiEdit') === false) { |
440 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
441 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
442 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
443 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> ' |
|
444 | - . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />'; |
|
440 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
441 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
442 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
443 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> ' |
|
444 | + . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />'; |
|
445 | 445 | if (isset($ftrs['hiddenInput'])) { |
446 | 446 | if (is_array($ftrs['hiddenInput'])) { |
447 | 447 | foreach ($ftrs['hiddenInput'] as $valueF) { |
448 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
449 | - . '" value="' . $_REQUEST[$valueF] . '" />'; |
|
448 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
449 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
450 | 450 | } |
451 | 451 | } else { |
452 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
453 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
452 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
453 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
454 | 454 | } |
455 | 455 | } |
456 | - $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />'; |
|
456 | + $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />'; |
|
457 | 457 | } |
458 | 458 | $sReturn .= '</form>'; |
459 | 459 | } |
460 | 460 | if (isset($ftrs['actions']['checkbox_inlineEdit'])) { |
461 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
462 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
463 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
464 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> '; |
|
461 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
462 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
463 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
464 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> '; |
|
465 | 465 | if (isset($ftrs['visibleInput'])) { |
466 | 466 | $sReturn .= $ftrs['visibleInput']; |
467 | 467 | } |
468 | - $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />'; |
|
468 | + $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />'; |
|
469 | 469 | if (isset($ftrs['hiddenInput'])) { |
470 | 470 | if (is_array($ftrs['hiddenInput'])) { |
471 | 471 | foreach ($ftrs['hiddenInput'] as $valueF) { |
472 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
473 | - . '" value="' . $_REQUEST[$valueF] . '" />'; |
|
472 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
473 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
474 | 474 | } |
475 | 475 | } else { |
476 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
477 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
476 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
477 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
478 | 478 | } |
479 | 479 | } |
480 | 480 | $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />'; |
@@ -494,12 +494,12 @@ discard block |
||
494 | 494 | { |
495 | 495 | return $this->setStringIntoTag(' ', 'span', [ |
496 | 496 | 'onclick' => implode('', [ |
497 | - 'javascript:NewCssCal(\'' . $controlName, |
|
497 | + 'javascript:NewCssCal(\''.$controlName, |
|
498 | 498 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
499 | 499 | ]), |
500 | 500 | 'class' => 'fa fa-calendar', |
501 | - 'id' => $controlName . '_picker', |
|
502 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
501 | + 'id' => $controlName.'_picker', |
|
502 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
503 | 503 | ]); |
504 | 504 | } |
505 | 505 | |
@@ -514,30 +514,30 @@ discard block |
||
514 | 514 | { |
515 | 515 | return $this->setStringIntoTag(' ', 'span', [ |
516 | 516 | 'onclick' => implode('', [ |
517 | - 'javascript:NewCssCal(\'' . $controlName, |
|
517 | + 'javascript:NewCssCal(\''.$controlName, |
|
518 | 518 | '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);', |
519 | 519 | ]), |
520 | 520 | 'class' => 'fa fa-calendar', |
521 | - 'id' => $controlName . '_picker', |
|
522 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
521 | + 'id' => $controlName.'_picker', |
|
522 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
523 | 523 | ]); |
524 | 524 | } |
525 | 525 | |
526 | 526 | private function setDynamicActionToSpecialCell($val, $aElements, $inP) |
527 | 527 | { |
528 | 528 | $aArgumemts = []; |
529 | - $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0]; |
|
529 | + $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0]; |
|
530 | 530 | $iActArgs = count($val[1]); |
531 | 531 | for ($counter = 0; $counter < $iActArgs; $counter++) { |
532 | - $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]]; |
|
532 | + $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]]; |
|
533 | 533 | } |
534 | - $id = $inP['key'] . $inP['rCounter']; |
|
534 | + $id = $inP['key'].$inP['rCounter']; |
|
535 | 535 | if (isset($inP['Features']['NoAjaxEditing'])) { |
536 | - return '<a href="' . implode('&', $aArgumemts) . '" id="' . $id . '"><i class="' |
|
537 | - . $inP['vIcon'] . '"> </i></a>'; |
|
536 | + return '<a href="'.implode('&', $aArgumemts).'" id="'.$id.'"><i class="' |
|
537 | + . $inP['vIcon'].'"> </i></a>'; |
|
538 | 538 | } |
539 | - return '<a href="#" onclick="javascript:loadAE(\'' . implode('&', $aArgumemts) . '\');"' |
|
540 | - . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '"> </i></a>'; |
|
539 | + return '<a href="#" onclick="javascript:loadAE(\''.implode('&', $aArgumemts).'\');"' |
|
540 | + . ' id="'.$id.'"><i class="'.$inP['vIcon'].'"> </i></a>'; |
|
541 | 541 | } |
542 | 542 | |
543 | 543 | /** |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | if (!is_null($sHK) && (in_array('noHeader', $sHK))) { |
553 | 553 | return ''; |
554 | 554 | } |
555 | - return $this->setFooterCommonInjected($footerInjected) . '</body></html>'; |
|
555 | + return $this->setFooterCommonInjected($footerInjected).'</body></html>'; |
|
556 | 556 | } |
557 | 557 | |
558 | 558 | protected function setFooterCommonInjected($footerInjected = null) |
@@ -585,11 +585,11 @@ discard block |
||
585 | 585 | 'lang' => '<html lang="en-US">', |
586 | 586 | 'head' => '<head>', |
587 | 587 | 'charset' => '<meta charset="utf-8" />', |
588 | - 'viewport' => '<meta name="viewport" content="' . implode(', ', [ |
|
588 | + 'viewport' => '<meta name="viewport" content="'.implode(', ', [ |
|
589 | 589 | 'width=device-width', |
590 | 590 | 'height=device-height', |
591 | 591 | 'initial-scale=1', |
592 | - ]) . '" />', |
|
592 | + ]).'" />', |
|
593 | 593 | ]; |
594 | 594 | if (!is_null($headerFeatures)) { |
595 | 595 | if (is_array($headerFeatures)) { |
@@ -617,11 +617,11 @@ discard block |
||
617 | 617 | break; |
618 | 618 | case 'lang': |
619 | 619 | $fixedHeaderElements['lang'] = '<html lang="' |
620 | - . filter_var($value, FILTER_SANITIZE_STRING) . '">'; |
|
620 | + . filter_var($value, FILTER_SANITIZE_STRING).'">'; |
|
621 | 621 | break; |
622 | 622 | case 'title': |
623 | - $aFeatures[] = '<title>' |
|
624 | - . filter_var($value, FILTER_SANITIZE_STRING) . '</title>'; |
|
623 | + $aFeatures[] = '<title>' |
|
624 | + . filter_var($value, FILTER_SANITIZE_STRING).'</title>'; |
|
625 | 625 | break; |
626 | 626 | } |
627 | 627 | } |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | . '</head>' |
635 | 635 | . '<body>' |
636 | 636 | . '<p style="background-color:red;color:#FFF;">The parameter sent to ' |
637 | - . __FUNCTION__ . ' must be an array</p>' |
|
637 | + . __FUNCTION__.' must be an array</p>' |
|
638 | 638 | . $this->setFooterCommon(); |
639 | 639 | throw new \Exception($sReturn); |
640 | 640 | } |
@@ -662,10 +662,10 @@ discard block |
||
662 | 662 | if (isset($features['column_formatting'][$key])) { |
663 | 663 | switch ($features['column_formatting'][$key]) { |
664 | 664 | case '@': |
665 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
665 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
666 | 666 | break; |
667 | 667 | case 'right': |
668 | - $sReturn .= 'style="text-align:right;">' . $value; |
|
668 | + $sReturn .= 'style="text-align:right;">'.$value; |
|
669 | 669 | break; |
670 | 670 | default: |
671 | 671 | $sReturn .= '???'; |
@@ -679,12 +679,12 @@ discard block |
||
679 | 679 | if ((strpos($value, '-') !== false) && (strlen($value) == 10)) { |
680 | 680 | if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) { |
681 | 681 | $outputet = true; |
682 | - $sReturn .= 'style="text-align:right;width: 10px;">' |
|
683 | - . $regs[3] . '.' . $regs[2] . '.' . $regs[1]; |
|
682 | + $sReturn .= 'style="text-align:right;width: 10px;">' |
|
683 | + . $regs[3].'.'.$regs[2].'.'.$regs[1]; |
|
684 | 684 | } |
685 | 685 | } |
686 | 686 | if (!$outputet) { |
687 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
687 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
688 | 688 | } |
689 | 689 | } |
690 | 690 | } |
@@ -710,11 +710,11 @@ discard block |
||
710 | 710 | { |
711 | 711 | $styleToReturn = 'style="text-align: right;">'; |
712 | 712 | if (substr($value, 0, 1) === '0') { |
713 | - return $styleToReturn . $value; |
|
713 | + return $styleToReturn.$value; |
|
714 | 714 | } |
715 | 715 | $decimals = $this->setTableCellDecimals($key, $features); |
716 | 716 | $nDc = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals]; |
717 | - return $styleToReturn . $this->setNumberFormat($value, $nDc); |
|
717 | + return $styleToReturn.$this->setNumberFormat($value, $nDc); |
|
718 | 718 | } |
719 | 719 | |
720 | 720 | /** |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | $this->handleLanguageIntoSession(); |
751 | 751 | return '<div class="upperRightBox">' |
752 | 752 | . '<div style="text-align:right;">' |
753 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
753 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
754 | 754 | . '" style="margin-right:2px;"> </span>' |
755 | 755 | . $aAvailableLanguages[$this->tCmnSession->get('lang')] |
756 | 756 | . '</div><!-- default Language -->' |
@@ -763,16 +763,16 @@ discard block |
||
763 | 763 | $linkWithoutLanguage = ''; |
764 | 764 | $alR = $this->tCmnSuperGlobals->query->all(); |
765 | 765 | if (count($alR) > 0) { |
766 | - $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']) . '&'; |
|
766 | + $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']).'&'; |
|
767 | 767 | } |
768 | 768 | $sReturn = []; |
769 | 769 | foreach ($aAvailableLanguages as $key => $value) { |
770 | 770 | if ($this->tCmnSession->get('lang') !== $key) { |
771 | - $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">' |
|
772 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2)) |
|
773 | - . '" style="margin-right:2px;"> </span>' . $value . '</a>'; |
|
771 | + $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">' |
|
772 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2)) |
|
773 | + . '" style="margin-right:2px;"> </span>'.$value.'</a>'; |
|
774 | 774 | } |
775 | 775 | } |
776 | - return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->'; |
|
776 | + return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->'; |
|
777 | 777 | } |
778 | 778 | } |