@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | * @param string $filename |
| 64 | 64 | */ |
| 65 | 65 | /** |
| 66 | - * @param $module |
|
| 67 | - * @param $filename |
|
| 66 | + * @param string $module |
|
| 67 | + * @param string $filename |
|
| 68 | 68 | */ |
| 69 | 69 | public function write($module, $filename) |
| 70 | 70 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @param null |
| 78 | 78 | */ |
| 79 | 79 | /** |
| 80 | - * @return bool|string |
|
| 80 | + * @return null|string |
|
| 81 | 81 | */ |
| 82 | 82 | public function render() |
| 83 | 83 | { |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | * @param string $filename |
| 77 | 77 | */ |
| 78 | 78 | /** |
| 79 | - * @param $module |
|
| 79 | + * @param string $module |
|
| 80 | 80 | * @param $table |
| 81 | - * @param $filename |
|
| 81 | + * @param string $filename |
|
| 82 | 82 | */ |
| 83 | 83 | public function write($module, $table, $filename) |
| 84 | 84 | { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | /** |
| 96 | 96 | * @param $moduleDirname |
| 97 | - * @param $language |
|
| 97 | + * @param string $language |
|
| 98 | 98 | * |
| 99 | 99 | * @return string |
| 100 | 100 | */ |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * @param null |
| 217 | 217 | */ |
| 218 | 218 | /** |
| 219 | - * @return bool|string |
|
| 219 | + * @return null|string |
|
| 220 | 220 | */ |
| 221 | 221 | public function render() |
| 222 | 222 | { |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | * @param string $filename |
| 77 | 77 | */ |
| 78 | 78 | /** |
| 79 | - * @param $module |
|
| 79 | + * @param string $module |
|
| 80 | 80 | * @param $table |
| 81 | - * @param $filename |
|
| 81 | + * @param string $filename |
|
| 82 | 82 | */ |
| 83 | 83 | public function write($module, $table, $filename) |
| 84 | 84 | { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * @param null |
| 164 | 164 | */ |
| 165 | 165 | /** |
| 166 | - * @return bool|string |
|
| 166 | + * @return null|string |
|
| 167 | 167 | */ |
| 168 | 168 | public function render() |
| 169 | 169 | { |
@@ -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 | { |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | $xc = TDMCreateXoopsCode::getInstance(); |
| 210 | 210 | $fields = $this->getTableFields($tableMid, $tableId); |
| 211 | 211 | $cases = array('form' => array($this->getUserSubmitForm($tableName, $language, $t)), |
| 212 | - 'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSolename, $tableSubmit, $tableAutoincrement, $language, $t)), ); |
|
| 212 | + 'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $tableSolename, $tableSubmit, $tableAutoincrement, $language, $t)),); |
|
| 213 | 213 | |
| 214 | 214 | return $xc->getXcSwitch('op', $cases, true, false, $t); |
| 215 | 215 | } |
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $ |
| 23 | 23 | */ |
| 24 | -include __DIR__ .'/header.php'; |
|
| 24 | +include __DIR__.'/header.php'; |
|
| 25 | 25 | $templateMain = 'tdmcreate_about.tpl'; |
| 26 | 26 | $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->displayNavigation('about.php')); |
| 27 | 27 | $about = $adminMenu->renderAbout($adminMenu->setPaypal('7LFE862PGJN88'), false); |
| 28 | 28 | $aboutRes = TDMCreate_MakeDonationForm($about); |
| 29 | 29 | $GLOBALS['xoopsTpl']->assign('maintained', sprintf(_AM_TDMCREATE_MAINTAINED, $GLOBALS['xoopsModule']->getVar('name'))); |
| 30 | 30 | $GLOBALS['xoopsTpl']->assign('about', $aboutRes); |
| 31 | -include __DIR__ .'/footer.php'; |
|
| 31 | +include __DIR__.'/footer.php'; |
|
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: tables.php 12258 2014-01-02 09:33:29Z timgno $ |
| 23 | 23 | */ |
| 24 | -include __DIR__ .'/header.php'; |
|
| 24 | +include __DIR__.'/header.php'; |
|
| 25 | 25 | // Recovered value of arguments op in the URL $ |
| 26 | 26 | $op = XoopsRequest::getString('op', 'list'); |
| 27 | 27 | // |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $tablesObj = &$tables->create(); |
| 133 | 133 | } |
| 134 | 134 | $tableOrder = XoopsRequest::getInt('table_order'); |
| 135 | - $order = $tablesObj->isNew() ? $tableOrder + 1 : $tableOrder; |
|
| 135 | + $order = $tablesObj->isNew() ? $tableOrder+1 : $tableOrder; |
|
| 136 | 136 | // Form save tables |
| 137 | 137 | $tablesObj->setVars(array( |
| 138 | 138 | 'table_mid' => $tableMid, |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | 'table_category' => (1 == $_REQUEST['table_category']) ? 1 : 0, |
| 142 | 142 | 'table_fieldname' => $tableFieldname, |
| 143 | 143 | 'table_nbfields' => $tableNumbFields, |
| 144 | - 'table_order' => $order, )); |
|
| 144 | + 'table_order' => $order,)); |
|
| 145 | 145 | //Form table_image |
| 146 | 146 | include_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
| 147 | 147 | $uploaddir = is_dir(XOOPS_ICONS32_PATH) ? XOOPS_ICONS32_PATH : TDMC_UPLOAD_IMGTAB_PATH; |
@@ -298,4 +298,4 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | break; |
| 300 | 300 | } |
| 301 | -include __DIR__ .'/footer.php'; |
|
| 301 | +include __DIR__.'/footer.php'; |
|
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: 1.91 fields.php 12258 2014-01-02 09:33:29Z timgno $ |
| 23 | 23 | */ |
| 24 | -include __DIR__ .'/header.php'; |
|
| 24 | +include __DIR__.'/header.php'; |
|
| 25 | 25 | // Recovered value of arguments op in the URL $ |
| 26 | 26 | $op = XoopsRequest::getString('op', 'list'); |
| 27 | 27 | // Get fields Variables |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | $fieldsObj->setVar('field_tfoot', (1 == $_REQUEST['field_tfoot'][$key]) ? 1 : 0); |
| 152 | 152 | $fieldsObj->setVar('field_block', (1 == $_REQUEST['field_block'][$key]) ? 1 : 0); |
| 153 | 153 | $fieldsObj->setVar('field_main', ($key == $_REQUEST['field_main'] ? 1 : 0)); |
| 154 | - $fieldsObj->setVar('field_search', (1 == $_REQUEST['field_search'][$key]) ? 1 : 0); |
|
| 154 | + $fieldsObj->setVar('field_search', (1 == $_REQUEST['field_search'][$key]) ? 1 : 0); |
|
| 155 | 155 | $fieldsObj->setVar('field_required', (1 == $_REQUEST['field_required'][$key]) ? 1 : 0); |
| 156 | 156 | // Insert Data |
| 157 | 157 | $tdmcreate->getHandler('fields')->insert($fieldsObj); |
@@ -246,4 +246,4 @@ discard block |
||
| 246 | 246 | } |
| 247 | 247 | break; |
| 248 | 248 | } |
| 249 | -include __DIR__ .'/footer.php'; |
|
| 249 | +include __DIR__.'/footer.php'; |
|
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $ |
| 23 | 23 | */ |
| 24 | -include __DIR__ .'/header.php'; |
|
| 24 | +include __DIR__.'/header.php'; |
|
| 25 | 25 | $templateMain = 'tdmcreate_about.tpl'; |
| 26 | 26 | $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->displayNavigation('about.php')); |
| 27 | 27 | $about = $adminMenu->renderAbout($adminMenu->setPaypal('7LFE862PGJN88'), false); |
| 28 | 28 | $aboutRes = TDMCreate_MakeDonationForm($about); |
| 29 | 29 | $GLOBALS['xoopsTpl']->assign('maintained', sprintf(_AM_TDMCREATE_MAINTAINED, $GLOBALS['xoopsModule']->getVar('name'))); |
| 30 | 30 | $GLOBALS['xoopsTpl']->assign('about', $aboutRes); |
| 31 | -include __DIR__ .'/footer.php'; |
|
| 31 | +include __DIR__.'/footer.php'; |
|
@@ -21,11 +21,11 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @version $Id: about.php 11084 2013-02-23 15:44:20Z timgno $ |
| 23 | 23 | */ |
| 24 | -include __DIR__ .'/header.php'; |
|
| 24 | +include __DIR__.'/header.php'; |
|
| 25 | 25 | $templateMain = 'tdmcreate_about.tpl'; |
| 26 | 26 | $GLOBALS['xoopsTpl']->assign('navigation', $adminMenu->displayNavigation('about.php')); |
| 27 | 27 | $about = $adminMenu->renderAbout($adminMenu->setPaypal('7LFE862PGJN88'), false); |
| 28 | 28 | $aboutRes = TDMCreate_MakeDonationForm($about); |
| 29 | 29 | $GLOBALS['xoopsTpl']->assign('maintained', sprintf(_AM_TDMCREATE_MAINTAINED, $GLOBALS['xoopsModule']->getVar('name'))); |
| 30 | 30 | $GLOBALS['xoopsTpl']->assign('about', $aboutRes); |
| 31 | -include __DIR__ .'/footer.php'; |
|
| 31 | +include __DIR__.'/footer.php'; |
|