@@ -63,9 +63,9 @@ discard block |
||
| 63 | 63 | * @param string $filename |
| 64 | 64 | */ |
| 65 | 65 | /** |
| 66 | - * @param $module |
|
| 66 | + * @param string $module |
|
| 67 | 67 | * @param $table |
| 68 | - * @param $filename |
|
| 68 | + * @param string $filename |
|
| 69 | 69 | */ |
| 70 | 70 | public function write($module, $table, $filename) |
| 71 | 71 | { |
@@ -179,6 +179,7 @@ discard block |
||
| 179 | 179 | * @param null |
| 180 | 180 | */ |
| 181 | 181 | /** |
| 182 | + * @param string $language |
|
| 182 | 183 | * @return string |
| 183 | 184 | */ |
| 184 | 185 | public function getUserSubmitFooter($moduleDirname, $language) |
@@ -204,6 +205,11 @@ discard block |
||
| 204 | 205 | * |
| 205 | 206 | * @return string |
| 206 | 207 | */ |
| 208 | + |
|
| 209 | + /** |
|
| 210 | + * @param string $language |
|
| 211 | + * @param string $t |
|
| 212 | + */ |
|
| 207 | 213 | private function getUserSubmitSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSolename, $tableSubmit, $tableAutoincrement, $language, $t) |
| 208 | 214 | { |
| 209 | 215 | $xc = TDMCreateXoopsCode::getInstance(); |
@@ -219,7 +225,7 @@ discard block |
||
| 219 | 225 | * @param null |
| 220 | 226 | */ |
| 221 | 227 | /** |
| 222 | - * @return bool|string |
|
| 228 | + * @return null|string |
|
| 223 | 229 | */ |
| 224 | 230 | public function render() |
| 225 | 231 | { |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | $tableId = $tables[$t]->getVar('table_id'); |
| 235 | 235 | $tableMid = $tables[$t]->getVar('table_mid'); |
| 236 | 236 | $tableName = $tables[$t]->getVar('table_name'); |
| 237 | - $tableSolename = $tables[$t]->getVar('table_solename'); |
|
| 237 | + $tableSolename = $tables[$t]->getVar('table_solename'); |
|
| 238 | 238 | $tableSubmit[] = $tables[$t]->getVar('table_submit'); |
| 239 | 239 | $tableAutoincrement[] = $tables[$t]->getVar('table_autoincrement'); |
| 240 | 240 | } |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | $tableId = $table->getVar('table_id'); |
| 212 | 212 | $tableMid = $table->getVar('table_mid'); |
| 213 | 213 | $tableName = $table->getVar('table_name'); |
| 214 | - $tableSolename = $table->getVar('table_solename'); |
|
| 214 | + $tableSolename = $table->getVar('table_solename'); |
|
| 215 | 215 | $tableAutoincrement = $table->getVar('table_autoincrement'); |
| 216 | 216 | $fields = $this->getTableFields($tableMid, $tableId); |
| 217 | 217 | $language = $this->getLanguage($moduleDirname, 'MA'); |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | { |
| 110 | 110 | $fields = $this->getTableFields($tableMid, $tableId); |
| 111 | 111 | $cases = array('form' => array($this->getUserRateForm($tableName, $language)), |
| 112 | - 'save' => array($this->getUserRateSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)), ); |
|
| 112 | + 'save' => array($this->getUserRateSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)),); |
|
| 113 | 113 | |
| 114 | 114 | return $this->xc->getXcSwitch('op', $cases, true); |
| 115 | 115 | } |
@@ -476,9 +476,9 @@ |
||
| 476 | 476 | $ret .= $this->getSimpleString('$c = 1;'); |
| 477 | 477 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 478 | 478 | $fieldElement = array(); |
| 479 | - foreach (array_keys($fields) as $f) { |
|
| 479 | + foreach (array_keys($fields) as $f) { |
|
| 480 | 480 | $fieldElement[] = $fields[$f]->getVar('field_element'); |
| 481 | - if (in_array(array(3, 4), $fieldElement)) { |
|
| 481 | + if (in_array(array(3, 4), $fieldElement)) { |
|
| 482 | 482 | $fieldName = $fields[$f]->getVar('field_name'); |
| 483 | 483 | $rpFieldName = $this->getRightString($fieldName); |
| 484 | 484 | $ucfFieldName = ucfirst($rpFieldName); |
@@ -223,7 +223,7 @@ |
||
| 223 | 223 | $tableId = $table->getVar('table_id'); |
| 224 | 224 | $tableMid = $table->getVar('table_mid'); |
| 225 | 225 | $tableName = $table->getVar('table_name'); |
| 226 | - $tableSolename = $table->getVar('table_solename'); |
|
| 226 | + $tableSolename = $table->getVar('table_solename'); |
|
| 227 | 227 | $tableAutoincrement = $table->getVar('table_autoincrement'); |
| 228 | 228 | $fields = $this->getTableFields($tableMid, $tableId); |
| 229 | 229 | $language = $this->getLanguage($moduleDirname, 'MA'); |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | $tableMid = $table->getVar('table_mid'); |
| 203 | 203 | $fields = $this->getTableFields($tableMid, $tableId); |
| 204 | 204 | $cases = array('form' => array($this->getUserBrokenForm($tableName, $language)), |
| 205 | - 'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)), ); |
|
| 205 | + 'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $tableSolename, $tableAutoincrement, $language)),); |
|
| 206 | 206 | |
| 207 | 207 | return $xc->getXcSwitch('op', $cases, true); |
| 208 | 208 | } |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | } |
| 293 | 293 | } |
| 294 | 294 | $getDefinesConf = array('NUMB_COL' => 'Number Columns', 'NUMB_COL_DESC' => 'Number Columns to View.', 'DIVIDEBY' => 'Divide By', 'DIVIDEBY_DESC' => 'Divide by columns number.', |
| 295 | - 'TABLE_TYPE' => 'Table Type', 'TABLE_TYPE_DESC' => 'Table Type is the bootstrap html table.', 'PANEL_TYPE' => 'Panel Type', 'PANEL_TYPE_DESC' => 'Panel Type is the bootstrap html div.', 'IDPAYPAL' => 'Paypal ID', 'IDPAYPAL_DESC' => 'Insert here your PayPal ID for donactions.', 'ADVERTISE' => 'Advertisement Code', 'ADVERTISE_DESC' => 'Insert here the advertisement code', 'MAINTAINEDBY' => 'Maintained By', 'MAINTAINEDBY_DESC' => 'Allow url of support site or community', 'BOOKMARKS' => 'Social Bookmarks', 'BOOKMARKS_DESC' => 'Show Social Bookmarks in the single page', 'FACEBOOK_COMMENTS' => 'Facebook comments', 'FACEBOOK_COMMENTS_DESC' => 'Allow Facebook comments in the single page', 'DISQUS_COMMENTS' => 'Disqus comments', 'DISQUS_COMMENTS_DESC' => 'Allow Disqus comments in the single page', ); |
|
| 295 | + 'TABLE_TYPE' => 'Table Type', 'TABLE_TYPE_DESC' => 'Table Type is the bootstrap html table.', 'PANEL_TYPE' => 'Panel Type', 'PANEL_TYPE_DESC' => 'Panel Type is the bootstrap html div.', 'IDPAYPAL' => 'Paypal ID', 'IDPAYPAL_DESC' => 'Insert here your PayPal ID for donactions.', 'ADVERTISE' => 'Advertisement Code', 'ADVERTISE_DESC' => 'Insert here the advertisement code', 'MAINTAINEDBY' => 'Maintained By', 'MAINTAINEDBY_DESC' => 'Allow url of support site or community', 'BOOKMARKS' => 'Social Bookmarks', 'BOOKMARKS_DESC' => 'Show Social Bookmarks in the single page', 'FACEBOOK_COMMENTS' => 'Facebook comments', 'FACEBOOK_COMMENTS_DESC' => 'Allow Facebook comments in the single page', 'DISQUS_COMMENTS' => 'Disqus comments', 'DISQUS_COMMENTS_DESC' => 'Allow Disqus comments in the single page',); |
|
| 296 | 296 | foreach ($getDefinesConf as $defc => $descc) { |
| 297 | 297 | $ret .= $df->getDefine($language, $defc, $descc); |
| 298 | 298 | } |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $stuTableSoleName = strtoupper($tableSoleName); |
| 318 | 318 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 319 | 319 | $getDefinesNotif = array('GLOBAL_NOTIFY' => 'Global notify', 'GLOBAL_NOTIFY_DESC' => 'Global notify desc', 'CATEGORY_NOTIFY' => 'Category notify', |
| 320 | - 'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$tableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$tableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$tableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$tableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$tableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$tableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$tableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$tableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$tableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$tableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$tableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$tableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$tableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$tableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$tableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$tableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$tableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$tableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$tableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject', ); |
|
| 320 | + 'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$tableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$tableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$tableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$tableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$tableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$tableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$tableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$tableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$tableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$tableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$tableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$tableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$tableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$tableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$tableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$tableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$tableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$tableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$tableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject',); |
|
| 321 | 321 | foreach ($getDefinesNotif as $defn => $descn) { |
| 322 | 322 | $ret .= $df->getDefine($language, $defn, $descn); |
| 323 | 323 | } |