@@ -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); |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | protected function setJsonErrorInPlainEnglish() |
| 235 | 235 | { |
| 236 | - $knownErrors = [ |
|
| 236 | + $knownErrors = [ |
|
| 237 | 237 | JSON_ERROR_NONE => null, |
| 238 | 238 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
| 239 | 239 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
@@ -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 | ]; |
@@ -88,11 +88,11 @@ discard block |
||
| 88 | 88 | 'size' => 10, |
| 89 | 89 | 'maxlength' => 10, |
| 90 | 90 | 'onfocus' => implode('', [ |
| 91 | - 'javascript:NewCssCal(\'' . $value['Field'], |
|
| 91 | + 'javascript:NewCssCal(\''.$value['Field'], |
|
| 92 | 92 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
| 93 | 93 | ]), |
| 94 | 94 | ]; |
| 95 | - return $this->setStringIntoShortTag('input', $inA) . $this->setCalendarControl($value['Field']); |
|
| 95 | + return $this->setStringIntoShortTag('input', $inA).$this->setCalendarControl($value['Field']); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | return [$line[0], $line[1]]; |
| 182 | 182 | // intentionally left open |
| 183 | 183 | case 'array_key2_value': |
| 184 | - return [$line[0] . '@' . $line[1], $line[1]]; |
|
| 184 | + return [$line[0].'@'.$line[1], $line[1]]; |
|
| 185 | 185 | // intentionally left open |
| 186 | 186 | case 'array_numbered': |
| 187 | 187 | return [$counter, $line[0]]; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | { |
| 99 | 99 | return [ |
| 100 | 100 | true, |
| 101 | - $this->sCloundFlareUrl . 'font-awesome/' . $this->getCmpltVers($cssFileName, 'font-awesome-') |
|
| 101 | + $this->sCloundFlareUrl.'font-awesome/'.$this->getCmpltVers($cssFileName, 'font-awesome-') |
|
| 102 | 102 | . '/css/font-awesome.min.css', |
| 103 | 103 | ]; |
| 104 | 104 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | 'highcharts' => 'setJavascriptFileCDNforHighCharts', |
| 134 | 134 | 'exporting' => 'setJavascriptFileCDNforHighChartsExporting', |
| 135 | 135 | ]; |
| 136 | - $rootFN = pathinfo($sFileParts[0])['basename']; |
|
| 136 | + $rootFN = pathinfo($sFileParts[0])['basename']; |
|
| 137 | 137 | if (array_key_exists($rootFN, $knownFNs)) { |
| 138 | 138 | return call_user_func([$this, $knownFNs[$rootFN]], pathinfo($jsFileName)['basename']); |
| 139 | 139 | } |
@@ -178,13 +178,13 @@ discard block |
||
| 178 | 178 | private function setJavascriptFileCDNforHighChartsMain($jsFileName, $libName) |
| 179 | 179 | { |
| 180 | 180 | $jsFN = $this->sanitizeString($jsFileName); |
| 181 | - $jsVersionlessFN = str_replace([$libName . '-', '.js'], '', pathinfo($jsFileName)['basename']) |
|
| 181 | + $jsVersionlessFN = str_replace([$libName.'-', '.js'], '', pathinfo($jsFileName)['basename']) |
|
| 182 | 182 | . ($libName === 'exporting' ? '/modules' : ''); |
| 183 | 183 | if (strpos($jsFileName, $libName) !== false) { |
| 184 | 184 | return [ |
| 185 | 185 | true, |
| 186 | - $this->sCloundFlareUrl . 'highcharts/' . $jsVersionlessFN . '/' . $libName . '.js', |
|
| 187 | - '<script>!window.Highcharts && document.write(\'<script src="' . $jsFN . '">\x3C/script>\')</script>', |
|
| 186 | + $this->sCloundFlareUrl.'highcharts/'.$jsVersionlessFN.'/'.$libName.'.js', |
|
| 187 | + '<script>!window.Highcharts && document.write(\'<script src="'.$jsFN.'">\x3C/script>\')</script>', |
|
| 188 | 188 | ]; |
| 189 | 189 | } |
| 190 | 190 | return null; |
@@ -205,8 +205,8 @@ discard block |
||
| 205 | 205 | if (($jQueryPosition !== false) && is_numeric($jQueryMajorVersion) && (substr($jsFileName, -7) == '.min.js')) { |
| 206 | 206 | return [ |
| 207 | 207 | true, |
| 208 | - $this->sCloundFlareUrl . 'jquery/' . $this->getCmpltVers($jsFileName, 'jquery-') . '/jquery.min.js', |
|
| 209 | - '<script>window.jQuery || document.write(\'<script src="' . $this->sanitizeString($jsFileName) |
|
| 208 | + $this->sCloundFlareUrl.'jquery/'.$this->getCmpltVers($jsFileName, 'jquery-').'/jquery.min.js', |
|
| 209 | + '<script>window.jQuery || document.write(\'<script src="'.$this->sanitizeString($jsFileName) |
|
| 210 | 210 | . '">\x3C/script>\')</script>', |
| 211 | 211 | ]; |
| 212 | 212 | } |
@@ -228,8 +228,8 @@ discard block |
||
| 228 | 228 | if (!is_null($eArray['version'])) { |
| 229 | 229 | return [ |
| 230 | 230 | true, |
| 231 | - $this->sCloundFlareUrl . $eArray['version'] . $eArray['justFile'], |
|
| 232 | - '<script>' . $eArray['eVerify'] . ' || document.write(\'<script src="' . $sFN |
|
| 231 | + $this->sCloundFlareUrl.$eArray['version'].$eArray['justFile'], |
|
| 232 | + '<script>'.$eArray['eVerify'].' || document.write(\'<script src="'.$sFN |
|
| 233 | 233 | . '">\x3C/script>\')</script>', |
| 234 | 234 | ]; |
| 235 | 235 | } |
@@ -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); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | private function sGlueFilterValIntoWhereStr($filterValue) |
| 67 | 67 | { |
| 68 | 68 | if (is_array($filterValue)) { |
| 69 | - return 'IN ("' . implode('", "', $filterValue) . '")'; |
|
| 69 | + return 'IN ("'.implode('", "', $filterValue).'")'; |
|
| 70 | 70 | } |
| 71 | 71 | return $this->sGlueFilterValueIntoWhereStringFinal($filterValue); |
| 72 | 72 | } |
@@ -79,13 +79,13 @@ discard block |
||
| 79 | 79 | 'NOT NULL|NULL', |
| 80 | 80 | ]; |
| 81 | 81 | if (in_array($filterValue, explode('|', $kFields[0]))) { |
| 82 | - return '= ' . $filterValue; |
|
| 82 | + return '= '.$filterValue; |
|
| 83 | 83 | } elseif (in_array($filterValue, explode('|', $kFields[1]))) { |
| 84 | 84 | return $filterValue; |
| 85 | 85 | } elseif (in_array($filterValue, explode('|', $kFields[2]))) { |
| 86 | - return 'IS ' . $filterValue; |
|
| 86 | + return 'IS '.$filterValue; |
|
| 87 | 87 | } |
| 88 | - return '= "' . $filterValue . '"'; |
|
| 88 | + return '= "'.$filterValue.'"'; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | private function sGlueFiltersIntoWhereArrayFilter($filters) |
| 98 | 98 | { |
| 99 | - return '(' . implode(') AND (', $filters) . ')'; |
|
| 99 | + return '('.implode(') AND (', $filters).')'; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | if (is_array($filterArray)) { |
| 116 | 116 | unset($filterArray['LIMIT']); |
| 117 | 117 | foreach ($filterArray as $key => $value) { |
| 118 | - $fltr[] = '`' . $tableToApplyFilterTo . '`.`' . $key . '` ' . $this->sGlueFilterValIntoWhereStr($value); |
|
| 118 | + $fltr[] = '`'.$tableToApplyFilterTo.'`.`'.$key.'` '.$this->sGlueFilterValIntoWhereStr($value); |
|
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | return $this->sManageDynamicFiltersFinal($fltr); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | { |
| 126 | 126 | if (count($filters) > 0) { |
| 127 | 127 | $sReturn = ['WHERE', $this->sGlueFiltersIntoWhereArrayFilter($filters)]; |
| 128 | - return implode(' ', $sReturn) . ' '; |
|
| 128 | + return implode(' ', $sReturn).' '; |
|
| 129 | 129 | } |
| 130 | 130 | return ''; |
| 131 | 131 | } |
@@ -145,13 +145,13 @@ discard block |
||
| 145 | 145 | { |
| 146 | 146 | return 'SELECT ' |
| 147 | 147 | . '`C`.`TABLE_SCHEMA`, ' |
| 148 | - . $this->sQueryMySqlColumnsColumns() . ' ' |
|
| 148 | + . $this->sQueryMySqlColumnsColumns().' ' |
|
| 149 | 149 | . 'FROM `information_schema`.`COLUMNS` `C` ' |
| 150 | - . 'LEFT JOIN `information_schema`.`KEY_COLUMN_USAGE` `KCU` ON ((' . implode(') AND (', [ |
|
| 150 | + . 'LEFT JOIN `information_schema`.`KEY_COLUMN_USAGE` `KCU` ON (('.implode(') AND (', [ |
|
| 151 | 151 | '`C`.`TABLE_SCHEMA` = `KCU`.`TABLE_SCHEMA`', |
| 152 | 152 | '`C`.`TABLE_NAME` = `KCU`.`TABLE_NAME`', |
| 153 | 153 | '`C`.`COLUMN_NAME` = `KCU`.`COLUMN_NAME`', |
| 154 | - ]) . ')) ' |
|
| 154 | + ]).')) ' |
|
| 155 | 155 | . $this->sManageDynamicFilters($filterArray, 'C') |
| 156 | 156 | . 'GROUP BY `C`.`TABLE_SCHEMA`, `C`.`TABLE_NAME`, `C`.`COLUMN_NAME` ' |
| 157 | 157 | . 'ORDER BY `C`.`TABLE_SCHEMA`, `C`.`TABLE_NAME`, `C`.`ORDINAL_POSITION` ' |
@@ -178,20 +178,20 @@ discard block |
||
| 178 | 178 | { |
| 179 | 179 | return 'SELECT ' |
| 180 | 180 | . '`KCU`.`CONSTRAINT_SCHEMA`, ' |
| 181 | - . $this->sQueryMySqlIndexesColumns() . ' ' |
|
| 181 | + . $this->sQueryMySqlIndexesColumns().' ' |
|
| 182 | 182 | . 'FROM `information_schema`.`KEY_COLUMN_USAGE` `KCU` ' |
| 183 | - . 'INNER JOIN `information_schema`.`COLUMNS` `C` ON ((' . implode(') AND (', [ |
|
| 183 | + . 'INNER JOIN `information_schema`.`COLUMNS` `C` ON (('.implode(') AND (', [ |
|
| 184 | 184 | '`C`.`TABLE_SCHEMA` = `KCU`.`TABLE_SCHEMA`', |
| 185 | 185 | '`C`.`TABLE_NAME` = `KCU`.`TABLE_NAME`', |
| 186 | 186 | '`C`.`COLUMN_NAME` = `KCU`.`COLUMN_NAME`', |
| 187 | - ]) . ')) ' |
|
| 188 | - . 'LEFT JOIN `information_schema`.`REFERENTIAL_CONSTRAINTS` `RC` ON ((' . implode(') AND (', [ |
|
| 187 | + ]).')) ' |
|
| 188 | + . 'LEFT JOIN `information_schema`.`REFERENTIAL_CONSTRAINTS` `RC` ON (('.implode(') AND (', [ |
|
| 189 | 189 | '`KCU`.`CONSTRAINT_SCHEMA` = `RC`.`CONSTRAINT_SCHEMA`', |
| 190 | 190 | '`KCU`.`CONSTRAINT_NAME` = `RC`.`CONSTRAINT_NAME`', |
| 191 | - ]) . ')) ' |
|
| 191 | + ]).')) ' |
|
| 192 | 192 | . $this->sManageDynamicFilters($filterArray, 'KCU') |
| 193 | 193 | . 'ORDER BY `KCU`.`TABLE_SCHEMA`, `KCU`.`TABLE_NAME`' |
| 194 | - . $this->xtraSoring($filterArray, 'COLUMN_NAME') . ';'; |
|
| 194 | + . $this->xtraSoring($filterArray, 'COLUMN_NAME').';'; |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | private function sQueryMySqlIndexesColumns() |
@@ -206,23 +206,23 @@ discard block |
||
| 206 | 206 | private function sQueryMySqlStatisticPattern($tblName, $lnkDbCol, $adtnlCol = null, $adtnlFltr = null) |
| 207 | 207 | { |
| 208 | 208 | $tblAls = substr($tblName, 0, 1); |
| 209 | - return '(SELECT COUNT(*) AS `No. of records` FROM `information_schema`.`' . $tblName . '` `' . $tblAls . '` ' |
|
| 210 | - . 'WHERE (`' . $tblAls . '`.`' . $lnkDbCol . '` = `S`.`SCHEMA_NAME`)' |
|
| 211 | - . (!is_null($adtnlCol) ? ' AND (`' . $tblAls . '`.`' . $adtnlCol . '` = "' . $adtnlFltr . '")' : '') |
|
| 212 | - . ') AS `' . ucwords(strtolower((is_null($adtnlCol) ? $tblName : $adtnlFltr))) . '`'; |
|
| 209 | + return '(SELECT COUNT(*) AS `No. of records` FROM `information_schema`.`'.$tblName.'` `'.$tblAls.'` ' |
|
| 210 | + . 'WHERE (`'.$tblAls.'`.`'.$lnkDbCol.'` = `S`.`SCHEMA_NAME`)' |
|
| 211 | + . (!is_null($adtnlCol) ? ' AND (`'.$tblAls.'`.`'.$adtnlCol.'` = "'.$adtnlFltr.'")' : '') |
|
| 212 | + . ') AS `'.ucwords(strtolower((is_null($adtnlCol) ? $tblName : $adtnlFltr))).'`'; |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | protected function sQueryMySqlStatistics($filterArray = null) |
| 216 | 216 | { |
| 217 | 217 | return 'SELECT ' |
| 218 | 218 | . '`S`.`SCHEMA_NAME`, ' |
| 219 | - . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'BASE TABLE') . ', ' |
|
| 220 | - . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'VIEW') . ', ' |
|
| 221 | - . $this->sQueryMySqlStatisticPattern('COLUMNS', 'TABLE_SCHEMA') . ', ' |
|
| 222 | - . $this->sQueryMySqlStatisticPattern('TRIGGERS', 'EVENT_OBJECT_SCHEMA') . ', ' |
|
| 223 | - . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Function') . ', ' |
|
| 224 | - . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Procedure') . ', ' |
|
| 225 | - . $this->sQueryMySqlStatisticPattern('EVENTS', 'EVENT_SCHEMA') . ' ' |
|
| 219 | + . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'BASE TABLE').', ' |
|
| 220 | + . $this->sQueryMySqlStatisticPattern('TABLES', 'TABLE_SCHEMA', 'TABLE_TYPE', 'VIEW').', ' |
|
| 221 | + . $this->sQueryMySqlStatisticPattern('COLUMNS', 'TABLE_SCHEMA').', ' |
|
| 222 | + . $this->sQueryMySqlStatisticPattern('TRIGGERS', 'EVENT_OBJECT_SCHEMA').', ' |
|
| 223 | + . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Function').', ' |
|
| 224 | + . $this->sQueryMySqlStatisticPattern('ROUTINES', 'ROUTINE_SCHEMA', 'ROUTINE_TYPE', 'Procedure').', ' |
|
| 225 | + . $this->sQueryMySqlStatisticPattern('EVENTS', 'EVENT_SCHEMA').' ' |
|
| 226 | 226 | . 'FROM `information_schema`.`SCHEMATA` `S` ' |
| 227 | 227 | . 'WHERE (`S`.`SCHEMA_NAME` NOT IN ("information_schema", "mysql", "performance_schema", "sys")) ' |
| 228 | 228 | . str_replace('WHERE', 'AND', $this->sManageDynamicFilters($filterArray, 'S')) |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | . ', `T`.`CREATE_OPTIONS`, `T`.`TABLE_COMMENT` ' |
| 244 | 244 | . 'FROM `information_schema`.`TABLES` `T` ' |
| 245 | 245 | . $this->sManageDynamicFilters($filterArray, 'T') |
| 246 | - . $this->xtraSoring($filterArray, 'TABLE_SCHEMA') . ';'; |
|
| 246 | + . $this->xtraSoring($filterArray, 'TABLE_SCHEMA').';'; |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | private function xtraSoring($filterArray, $filterValueToDecide) |