@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | * @param $module |
| 63 | 63 | * @param $table |
| 64 | - * @param $filename |
|
| 64 | + * @param string $filename |
|
| 65 | 65 | */ |
| 66 | 66 | public function write($module, $table, $filename) |
| 67 | 67 | { |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * @param $tableName |
| 225 | 225 | * @param $fieldId |
| 226 | 226 | * @param $fieldMain |
| 227 | - * @param $language |
|
| 227 | + * @param string $language |
|
| 228 | 228 | * |
| 229 | 229 | * @return string |
| 230 | 230 | */ |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * @param null |
| 277 | 277 | * |
| 278 | - * @return bool|string |
|
| 278 | + * @return null|string |
|
| 279 | 279 | */ |
| 280 | 280 | public function render() |
| 281 | 281 | { |
@@ -58,16 +58,15 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @public function write |
| 61 | - |
|
| 62 | 61 | * @param $module |
| 63 | 62 | * @param $table |
| 64 | - * @param $filename |
|
| 63 | + * @param $filename |
|
| 65 | 64 | */ |
| 66 | 65 | public function write($module, $table, $filename) |
| 67 | 66 | { |
| 68 | 67 | $this->setModule($module); |
| 69 | 68 | $this->setTable($table); |
| 70 | - $this->setFileName($filename); |
|
| 69 | + $this->setFileName($filename); |
|
| 71 | 70 | } |
| 72 | 71 | |
| 73 | 72 | /* |
@@ -282,7 +281,7 @@ discard block |
||
| 282 | 281 | $module = $this->getModule(); |
| 283 | 282 | $table = $this->getTable(); |
| 284 | 283 | $moduleDirname = $module->getVar('mod_dirname'); |
| 285 | - $filename = $this->getFileName(); |
|
| 284 | + $filename = $this->getFileName(); |
|
| 286 | 285 | $tableName = $table->getVar('table_name'); |
| 287 | 286 | $tableFieldname = $table->getVar('table_fieldname'); |
| 288 | 287 | $tableCategory = $table->getVar('table_category'); |
@@ -64,6 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @param $module |
| 66 | 66 | * @param $table |
| 67 | + * @param string $filename |
|
| 67 | 68 | */ |
| 68 | 69 | public function write($module, $table, $filename) |
| 69 | 70 | { |
@@ -81,7 +82,7 @@ discard block |
||
| 81 | 82 | /** |
| 82 | 83 | * @param $moduleDirname |
| 83 | 84 | * @param $table |
| 84 | - * @param $language |
|
| 85 | + * @param string $language |
|
| 85 | 86 | * |
| 86 | 87 | * @return string |
| 87 | 88 | */ |
@@ -108,9 +109,10 @@ discard block |
||
| 108 | 109 | * @param string $language |
| 109 | 110 | */ |
| 110 | 111 | /** |
| 111 | - * @param $moduleDirname |
|
| 112 | + * @param string $moduleDirname |
|
| 112 | 113 | * @param $table |
| 113 | - * @param $language |
|
| 114 | + * @param string $language |
|
| 115 | + * @param string $tableName |
|
| 114 | 116 | * |
| 115 | 117 | * @return string |
| 116 | 118 | */ |
@@ -231,7 +233,7 @@ discard block |
||
| 231 | 233 | /** |
| 232 | 234 | * @param null |
| 233 | 235 | * |
| 234 | - * @return bool|string |
|
| 236 | + * @return null|string |
|
| 235 | 237 | */ |
| 236 | 238 | public function render() |
| 237 | 239 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $this->setModule($module); |
| 71 | 71 | $this->setTable($table); |
| 72 | - $this->setFileName($filename); |
|
| 72 | + $this->setFileName($filename); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /* |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | private function getTemplatesBlocksTableThead($tableId, $tableMid, $language) |
| 89 | 89 | { |
| 90 | 90 | $th = ''; |
| 91 | - $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 91 | + $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 92 | 92 | $fields = $this->getTableFields($tableMid, $tableId); |
| 93 | 93 | foreach (array_keys($fields) as $f) { |
| 94 | 94 | $fieldName = $fields[$f]->getVar('field_name'); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | private function getTemplatesBlocksTableTbody($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $tableAutoincrement, $language) |
| 118 | 118 | { |
| 119 | 119 | $td = ''; |
| 120 | - $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 120 | + $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 121 | 121 | if (1 == $tableAutoincrement) { |
| 122 | 122 | $double = $htmlcode->getSmartyDoubleVar($tableSoleName, 'id'); |
| 123 | 123 | $td .= $htmlcode->getHtmlTag('td', array('class' => 'center'), $double).PHP_EOL; |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | private function getTemplatesBlocksTableTfoot() |
| 200 | 200 | { |
| 201 | 201 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 202 | - $td = $htmlcode->getHtmlTag('td', array(), ' ').PHP_EOL; |
|
| 202 | + $td = $htmlcode->getHtmlTag('td', array(), ' ').PHP_EOL; |
|
| 203 | 203 | $tr = $htmlcode->getHtmlTag('tr', array(), $td).PHP_EOL; |
| 204 | 204 | |
| 205 | 205 | return $htmlcode->getHtmlTag('tfoot', array(), $tr).PHP_EOL; |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | private function getTemplatesBlocksTable($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $tableAutoincrement, $language) |
| 217 | 217 | { |
| 218 | 218 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 219 | - $tbody = $this->getTemplatesBlocksTableThead($tableId, $tableMid, $language); |
|
| 219 | + $tbody = $this->getTemplatesBlocksTableThead($tableId, $tableMid, $language); |
|
| 220 | 220 | $tbody .= $this->getTemplatesBlocksTableTbody($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $tableAutoincrement, $language); |
| 221 | 221 | $tbody .= $this->getTemplatesBlocksTableTfoot(); |
| 222 | 222 | $single = $htmlcode->getSmartySingleVar('table_type'); |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | $module = $this->getModule(); |
| 239 | 239 | $table = $this->getTable(); |
| 240 | 240 | $moduleDirname = $module->getVar('mod_dirname'); |
| 241 | - $filename = $this->getFileName(); |
|
| 241 | + $filename = $this->getFileName(); |
|
| 242 | 242 | $tableId = $table->getVar('table_id'); |
| 243 | 243 | $tableMid = $table->getVar('table_mid'); |
| 244 | 244 | $tableName = $table->getVar('table_name'); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | $fieldName = $fields[$f]->getVar('field_name'); |
| 95 | 95 | $stuFieldName = strtoupper($fieldName); |
| 96 | 96 | $lang = $htmlcode->getSmartyConst($language, $stuFieldName); |
| 97 | - $th .= $htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 97 | + $th .= $htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 98 | 98 | } |
| 99 | 99 | $tr = $htmlcode->getHtmlTableRow($th, 'head').PHP_EOL; |
| 100 | 100 | |
@@ -65,6 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @param $module |
| 67 | 67 | * @param $table |
| 68 | + * @param string $filename |
|
| 68 | 69 | */ |
| 69 | 70 | public function write($module, $table, $filename) |
| 70 | 71 | { |
@@ -97,7 +98,7 @@ discard block |
||
| 97 | 98 | /** |
| 98 | 99 | * @param $moduleDirname |
| 99 | 100 | * @param $table |
| 100 | - * @param $language |
|
| 101 | + * @param string $language |
|
| 101 | 102 | * |
| 102 | 103 | * @return string |
| 103 | 104 | */ |
@@ -128,7 +129,7 @@ discard block |
||
| 128 | 129 | /** |
| 129 | 130 | * @param $moduleDirname |
| 130 | 131 | * @param $table |
| 131 | - * @param $language |
|
| 132 | + * @param string $language |
|
| 132 | 133 | * |
| 133 | 134 | * @return string |
| 134 | 135 | */ |
@@ -189,7 +190,7 @@ discard block |
||
| 189 | 190 | /** |
| 190 | 191 | * @param null |
| 191 | 192 | * |
| 192 | - * @return bool|string |
|
| 193 | + * @return null|string |
|
| 193 | 194 | */ |
| 194 | 195 | public function render() |
| 195 | 196 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | $this->setModule($module); |
| 72 | 72 | $this->setTable($table); |
| 73 | - $this->setFileName($filename); |
|
| 73 | + $this->setFileName($filename); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /* |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | private function getTemplatesUserBrokenFileHeader($moduleDirname) |
| 86 | 86 | { |
| 87 | 87 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 88 | - return $htmlcode->getSmartyIncludeFile($moduleDirname, 'header'); |
|
| 88 | + return $htmlcode->getSmartyIncludeFile($moduleDirname, 'header'); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /* |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | private function getTemplatesUserBrokenTableHead($tableMid, $tableId, $tableAutoincrement, $language) |
| 105 | 105 | { |
| 106 | 106 | $th = ''; |
| 107 | - $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 107 | + $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 108 | 108 | $fields = $this->getTableFields($tableMid, $tableId); |
| 109 | 109 | foreach (array_keys($fields) as $f) { |
| 110 | 110 | $fieldName = $fields[$f]->getVar('field_name'); |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | private function getTemplatesUserBrokenBody($moduleDirname, $tableMid, $tableId, $tableName, $tableSolename, $tableAutoincrement, $language) |
| 136 | 136 | { |
| 137 | 137 | $ret = ''; |
| 138 | - $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 139 | - $fields = $this->getTableFields($tableMid, $tableId); |
|
| 138 | + $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
|
| 139 | + $fields = $this->getTableFields($tableMid, $tableId); |
|
| 140 | 140 | foreach (array_keys($fields) as $f) { |
| 141 | 141 | $fieldName = $fields[$f]->getVar('field_name'); |
| 142 | 142 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | private function getTemplatesUserBrokenFileFooter($moduleDirname) |
| 180 | 180 | { |
| 181 | 181 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 182 | - return $htmlcode->getSmartyIncludeFile($moduleDirname, 'footer'); |
|
| 182 | + return $htmlcode->getSmartyIncludeFile($moduleDirname, 'footer'); |
|
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /* |
@@ -194,10 +194,10 @@ discard block |
||
| 194 | 194 | public function render() |
| 195 | 195 | { |
| 196 | 196 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 197 | - $module = $this->getModule(); |
|
| 197 | + $module = $this->getModule(); |
|
| 198 | 198 | $table = $this->getTable(); |
| 199 | 199 | $moduleDirname = $module->getVar('mod_dirname'); |
| 200 | - $filename = $this->getFileName(); |
|
| 200 | + $filename = $this->getFileName(); |
|
| 201 | 201 | $tableId = $table->getVar('table_id'); |
| 202 | 202 | $tableMid = $table->getVar('table_mid'); |
| 203 | 203 | $tableName = $table->getVar('table_name'); |
@@ -65,6 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @param $module |
| 67 | 67 | * @param $table |
| 68 | + * @param string $filename |
|
| 68 | 69 | */ |
| 69 | 70 | public function write($module, $table, $filename) |
| 70 | 71 | { |
@@ -112,7 +113,8 @@ discard block |
||
| 112 | 113 | * @param string $language |
| 113 | 114 | */ |
| 114 | 115 | /** |
| 115 | - * @param $language |
|
| 116 | + * @param string $language |
|
| 117 | + * @param string $tableName |
|
| 116 | 118 | * |
| 117 | 119 | * @return string |
| 118 | 120 | */ |
@@ -135,9 +137,10 @@ discard block |
||
| 135 | 137 | * @param string $language |
| 136 | 138 | */ |
| 137 | 139 | /** |
| 138 | - * @param $moduleDirname |
|
| 140 | + * @param string $moduleDirname |
|
| 139 | 141 | * @param $table |
| 140 | - * @param $language |
|
| 142 | + * @param string $language |
|
| 143 | + * @param string $tableName |
|
| 141 | 144 | * |
| 142 | 145 | * @return string |
| 143 | 146 | */ |
@@ -183,7 +186,7 @@ discard block |
||
| 183 | 186 | * @param string $language |
| 184 | 187 | */ |
| 185 | 188 | /** |
| 186 | - * @param $language |
|
| 189 | + * @param string $language |
|
| 187 | 190 | * |
| 188 | 191 | * @return string |
| 189 | 192 | */ |
@@ -218,7 +221,7 @@ discard block |
||
| 218 | 221 | /** |
| 219 | 222 | * @param null |
| 220 | 223 | * |
| 221 | - * @return bool|string |
|
| 224 | + * @return null|string |
|
| 222 | 225 | */ |
| 223 | 226 | public function render() |
| 224 | 227 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | $this->setModule($module); |
| 72 | 72 | $this->setTable($table); |
| 73 | - $this->setFileName($filename); |
|
| 73 | + $this->setFileName($filename); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /* |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | private function getTemplatesUserPagesHeader($moduleDirname) |
| 86 | 86 | { |
| 87 | 87 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 88 | - return $htmlcode->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL; |
|
| 88 | + return $htmlcode->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /* |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | private function getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSolename, $language) |
| 100 | 100 | { |
| 101 | 101 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 102 | - $tbody = $this->getTemplatesUserPagesTableThead($tableName, $language); |
|
| 102 | + $tbody = $this->getTemplatesUserPagesTableThead($tableName, $language); |
|
| 103 | 103 | $tbody .= $this->getTemplatesUserPagesTableTbody($moduleDirname, $tableName, $tableSolename, $language); |
| 104 | 104 | $tbody .= $this->getTemplatesUserPagesTableTfoot(); |
| 105 | 105 | $single = $htmlcode->getSmartySingleVar('table_type'); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | $stuTableName = strtoupper($tableName); |
| 122 | 122 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 123 | - $single = $htmlcode->getSmartySingleVar('divideby'); |
|
| 123 | + $single = $htmlcode->getSmartySingleVar('divideby'); |
|
| 124 | 124 | $lang = $htmlcode->getSmartyConst($language, $stuTableName.'_TITLE'); |
| 125 | 125 | $th = $htmlcode->getHtmlTableHead($lang, '', $single).PHP_EOL; |
| 126 | 126 | $tr = $htmlcode->getHtmlTableRow($th, 'head').PHP_EOL; |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | private function getTemplatesUserPagesTableTbody($moduleDirname, $tableName, $tableSolename, $language) |
| 145 | 145 | { |
| 146 | 146 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 147 | - $single = $htmlcode->getSmartySingleVar('panel_type'); |
|
| 147 | + $single = $htmlcode->getSmartySingleVar('panel_type'); |
|
| 148 | 148 | $include = $htmlcode->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSolename); |
| 149 | 149 | $div = $htmlcode->getHtmlDiv($include, 'panel panel-'.$single); |
| 150 | 150 | $cont = $htmlcode->getHtmlTableData($div).PHP_EOL; |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | private function getTemplatesUserPagesTableTfoot() |
| 173 | 173 | { |
| 174 | 174 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 175 | - $td = $htmlcode->getHtmlTableData(' ').PHP_EOL; |
|
| 175 | + $td = $htmlcode->getHtmlTableData(' ').PHP_EOL; |
|
| 176 | 176 | $tr = $htmlcode->getHtmlTableRow($td).PHP_EOL; |
| 177 | 177 | |
| 178 | 178 | return $htmlcode->getHtmlTableTfoot($tr).PHP_EOL; |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | private function getTemplatesUserPages($moduleDirname, $tableName, $tableSolename, $language) |
| 191 | 191 | { |
| 192 | 192 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 193 | - $table = $this->getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSolename, $language).PHP_EOL; |
|
| 193 | + $table = $this->getTemplatesUserPagesTable($moduleDirname, $tableName, $tableSolename, $language).PHP_EOL; |
|
| 194 | 194 | $div = $htmlcode->getHtmlDiv($table, 'table-responsive').PHP_EOL; |
| 195 | 195 | |
| 196 | 196 | return $htmlcode->getSmartyConditions($tableName, ' gt ', '0', $div, false, true).PHP_EOL; |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | private function getTemplatesUserPagesFooter($moduleDirname) |
| 209 | 209 | { |
| 210 | 210 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 211 | - return $htmlcode->getSmartyIncludeFile($moduleDirname, 'footer'); |
|
| 211 | + return $htmlcode->getSmartyIncludeFile($moduleDirname, 'footer'); |
|
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /* |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | $module = $this->getModule(); |
| 226 | 226 | $table = $this->getTable(); |
| 227 | 227 | $moduleDirname = $module->getVar('mod_dirname'); |
| 228 | - $filename = $this->getFileName(); |
|
| 228 | + $filename = $this->getFileName(); |
|
| 229 | 229 | $tableName = $table->getVar('table_name'); |
| 230 | 230 | $tableSolename = $table->getVar('table_solename'); |
| 231 | 231 | $language = $this->getLanguage($moduleDirname, 'MA'); |
@@ -64,6 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @param $module |
| 66 | 66 | * @param $table |
| 67 | + * @param string $filename |
|
| 67 | 68 | */ |
| 68 | 69 | public function write($module, $filename) |
| 69 | 70 | { |
@@ -132,7 +133,7 @@ discard block |
||
| 132 | 133 | /** |
| 133 | 134 | * @param null |
| 134 | 135 | * |
| 135 | - * @return bool|string |
|
| 136 | + * @return null|string |
|
| 136 | 137 | */ |
| 137 | 138 | public function render() |
| 138 | 139 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public function __construct() |
| 38 | 38 | { |
| 39 | 39 | parent::__construct(); |
| 40 | - } |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | 42 | /* |
| 43 | 43 | * @static function &getInstance |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function write($module, $filename) |
| 69 | 69 | { |
| 70 | 70 | $this->setModule($module); |
| 71 | - $this->setFileName($filename); |
|
| 71 | + $this->setFileName($filename); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /* |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | $module = $this->getModule(); |
| 140 | 140 | $moduleDirname = $module->getVar('mod_dirname'); |
| 141 | - $filename = $this->getFileName(); |
|
| 141 | + $filename = $this->getFileName(); |
|
| 142 | 142 | $language = $this->getLanguage($moduleDirname, 'MA'); |
| 143 | 143 | $content = $this->getTemplatesUserRssXml(); |
| 144 | 144 | // |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * @param $moduleDirname |
| 84 | 84 | * @param $table |
| 85 | - * @param $language |
|
| 85 | + * @param string $language |
|
| 86 | 86 | * |
| 87 | 87 | * @return string |
| 88 | 88 | */ |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * @param $moduleDirname |
| 123 | 123 | * @param $table |
| 124 | - * @param $language |
|
| 124 | + * @param string $language |
|
| 125 | 125 | * |
| 126 | 126 | * @return string |
| 127 | 127 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * @param $moduleDirname |
| 184 | 184 | * @param $table |
| 185 | - * @param $language |
|
| 185 | + * @param string $language |
|
| 186 | 186 | * |
| 187 | 187 | * @return string |
| 188 | 188 | */ |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | /** |
| 254 | 254 | * @param null |
| 255 | 255 | * |
| 256 | - * @return bool|string |
|
| 256 | + * @return null|string |
|
| 257 | 257 | */ |
| 258 | 258 | public function render() |
| 259 | 259 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $this->setModule($module); |
| 68 | 68 | $this->setTable($table); |
| 69 | - $this->setFileName($filename); |
|
| 69 | + $this->setFileName($filename); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /* |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | { |
| 260 | 260 | $module = $this->getModule(); |
| 261 | 261 | $table = $this->getTable(); |
| 262 | - $filename = $this->getFileName(); |
|
| 262 | + $filename = $this->getFileName(); |
|
| 263 | 263 | $moduleDirname = $module->getVar('mod_dirname'); |
| 264 | 264 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 265 | 265 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'), 'field_order'); |
@@ -65,6 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @param $module |
| 67 | 67 | * @param $table |
| 68 | + * @param string $filename |
|
| 68 | 69 | */ |
| 69 | 70 | public function write($module, $table, $filename) |
| 70 | 71 | { |
@@ -82,7 +83,7 @@ discard block |
||
| 82 | 83 | /** |
| 83 | 84 | * @param $moduleDirname |
| 84 | 85 | * @param $table |
| 85 | - * @param $language |
|
| 86 | + * @param string $language |
|
| 86 | 87 | * |
| 87 | 88 | * @return string |
| 88 | 89 | */ |
@@ -121,7 +122,7 @@ discard block |
||
| 121 | 122 | /** |
| 122 | 123 | * @param $moduleDirname |
| 123 | 124 | * @param $table |
| 124 | - * @param $language |
|
| 125 | + * @param string $language |
|
| 125 | 126 | * |
| 126 | 127 | * @return string |
| 127 | 128 | */ |
@@ -182,7 +183,7 @@ discard block |
||
| 182 | 183 | /** |
| 183 | 184 | * @param $moduleDirname |
| 184 | 185 | * @param $table |
| 185 | - * @param $language |
|
| 186 | + * @param string $language |
|
| 186 | 187 | * |
| 187 | 188 | * @return string |
| 188 | 189 | */ |
@@ -253,7 +254,7 @@ discard block |
||
| 253 | 254 | /** |
| 254 | 255 | * @param $filename |
| 255 | 256 | * |
| 256 | - * @return bool|string |
|
| 257 | + * @return null|string |
|
| 257 | 258 | */ |
| 258 | 259 | public function render() |
| 259 | 260 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $this->setModule($module); |
| 68 | 68 | $this->setTable($table); |
| 69 | - $this->setFileName($filename); |
|
| 69 | + $this->setFileName($filename); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /* |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | { |
| 260 | 260 | $module = $this->getModule(); |
| 261 | 261 | $table = $this->getTable(); |
| 262 | - $filename = $this->getFileName(); |
|
| 262 | + $filename = $this->getFileName(); |
|
| 263 | 263 | $moduleDirname = $module->getVar('mod_dirname'); |
| 264 | 264 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 265 | 265 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'), 'field_order'); |
@@ -65,6 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @param $module |
| 67 | 67 | * @param $table |
| 68 | + * @param string $filename |
|
| 68 | 69 | */ |
| 69 | 70 | public function write($module, $table, $filename) |
| 70 | 71 | { |
@@ -99,7 +100,7 @@ discard block |
||
| 99 | 100 | */ |
| 100 | 101 | /** |
| 101 | 102 | * @param $moduleDirname |
| 102 | - * @param $language |
|
| 103 | + * @param string $language |
|
| 103 | 104 | * |
| 104 | 105 | * @return string |
| 105 | 106 | */ |
@@ -148,7 +149,7 @@ discard block |
||
| 148 | 149 | /** |
| 149 | 150 | * @param null |
| 150 | 151 | * |
| 151 | - * @return bool|string |
|
| 152 | + * @return null|string |
|
| 152 | 153 | */ |
| 153 | 154 | public function render() |
| 154 | 155 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | $this->setModule($module); |
| 72 | 72 | $this->setTable($table); |
| 73 | - $this->setFileName($filename); |
|
| 73 | + $this->setFileName($filename); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /* |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | private function getTemplatesUserSubmitHeader($moduleDirname) |
| 90 | 90 | { |
| 91 | 91 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 92 | - return $htmlcode->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL; |
|
| 92 | + return $htmlcode->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /* |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | private function getTemplatesUserSubmit($moduleDirname, $language) |
| 107 | 107 | { |
| 108 | 108 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 109 | - $const = $htmlcode->getSmartyConst($language, 'SUBMIT_SUBMITONCE'); |
|
| 109 | + $const = $htmlcode->getSmartyConst($language, 'SUBMIT_SUBMITONCE'); |
|
| 110 | 110 | $li = $htmlcode->getHtmlLi($const).PHP_EOL; |
| 111 | 111 | $const = $htmlcode->getSmartyConst($language, 'SUBMIT_ALLPENDING'); |
| 112 | 112 | $li .= $htmlcode->getHtmlLi($const).PHP_EOL; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | private function getTemplatesUserSubmitFooter($moduleDirname) |
| 139 | 139 | { |
| 140 | 140 | $htmlcode = TDMCreateHtmlSmartyCodes::getInstance(); |
| 141 | - return $htmlcode->getSmartyIncludeFile($moduleDirname, 'footer'); |
|
| 141 | + return $htmlcode->getSmartyIncludeFile($moduleDirname, 'footer'); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /* |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $module = $this->getModule(); |
| 156 | 156 | $table = $this->getTable(); |
| 157 | 157 | $moduleDirname = $module->getVar('mod_dirname'); |
| 158 | - $filename = $this->getFileName(); |
|
| 158 | + $filename = $this->getFileName(); |
|
| 159 | 159 | $tableFieldname = $table->getVar('table_fieldname'); |
| 160 | 160 | $language = $this->getLanguage($moduleDirname, 'MA'); |
| 161 | 161 | $content = $this->getTemplatesUserSubmitHeader($moduleDirname); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $this->setModule($module); |
| 68 | 68 | $this->setTable($table); |
| 69 | - $this->setFileName($filename); |
|
| 69 | + $this->setFileName($filename); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /* |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | { |
| 260 | 260 | $module = $this->getModule(); |
| 261 | 261 | $table = $this->getTable(); |
| 262 | - $filename = $this->getFileName(); |
|
| 262 | + $filename = $this->getFileName(); |
|
| 263 | 263 | $moduleDirname = $module->getVar('mod_dirname'); |
| 264 | 264 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 265 | 265 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'), 'field_order'); |
@@ -65,6 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * @param $module |
| 67 | 67 | * @param $table |
| 68 | + * @param string $filename |
|
| 68 | 69 | */ |
| 69 | 70 | public function write($module, $table, $filename) |
| 70 | 71 | { |
@@ -82,7 +83,7 @@ discard block |
||
| 82 | 83 | /** |
| 83 | 84 | * @param $moduleDirname |
| 84 | 85 | * @param $table |
| 85 | - * @param $language |
|
| 86 | + * @param string $language |
|
| 86 | 87 | * |
| 87 | 88 | * @return string |
| 88 | 89 | */ |
@@ -121,7 +122,7 @@ discard block |
||
| 121 | 122 | /** |
| 122 | 123 | * @param $moduleDirname |
| 123 | 124 | * @param $table |
| 124 | - * @param $language |
|
| 125 | + * @param string $language |
|
| 125 | 126 | * |
| 126 | 127 | * @return string |
| 127 | 128 | */ |
@@ -182,7 +183,7 @@ discard block |
||
| 182 | 183 | /** |
| 183 | 184 | * @param $moduleDirname |
| 184 | 185 | * @param $table |
| 185 | - * @param $language |
|
| 186 | + * @param string $language |
|
| 186 | 187 | * |
| 187 | 188 | * @return string |
| 188 | 189 | */ |
@@ -253,7 +254,7 @@ discard block |
||
| 253 | 254 | /** |
| 254 | 255 | * @param $filename |
| 255 | 256 | * |
| 256 | - * @return bool|string |
|
| 257 | + * @return null|string |
|
| 257 | 258 | */ |
| 258 | 259 | public function render() |
| 259 | 260 | { |