@@ -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 | { |
@@ -119,26 +119,26 @@ |
||
| 119 | 119 | var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; |
| 120 | 120 | } |
| 121 | 121 | //--></script> |
| 122 | -<!-- End Form Validation JavaScript //-->', ); |
|
| 122 | +<!-- End Form Validation JavaScript //-->',); |
|
| 123 | 123 | $paypalform = array(0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', |
| 124 | 124 | 1 => '<input name="cmd" value="_s-xclick" type="hidden">', |
| 125 | 125 | 2 => '<input name="hosted_button_id" value="%s" type="hidden">', |
| 126 | 126 | 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', |
| 127 | 127 | 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', |
| 128 | - 5 => '</form>', ); |
|
| 129 | - for ($key = 0;$key <= 4;++$key) { |
|
| 128 | + 5 => '</form>',); |
|
| 129 | + for ($key = 0; $key <= 4; ++$key) { |
|
| 130 | 130 | switch ($key) { |
| 131 | 131 | case 2: |
| 132 | - $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name')); |
|
| 132 | + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'].' - '.(strlen($GLOBALS['xoopsUser']->getVar('name')) > 0 ? $GLOBALS['xoopsUser']->getVar('name').' ['.$GLOBALS['xoopsUser']->getVar('uname').']' : $GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xoopsModule']->getVar('dirname')), strtoupper($GLOBALS['xoopsModule']->getVar('dirname')).' '.$GLOBALS['xoopsModule']->getVar('name')); |
|
| 133 | 133 | break; |
| 134 | 134 | } |
| 135 | 135 | } |
| 136 | 136 | $aboutRes = ''; |
| 137 | 137 | $istart = strpos($about, $paypalform[0], 1); |
| 138 | - $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1; |
|
| 139 | - $aboutRes .= substr($about, 0, $istart - 1); |
|
| 138 | + $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1; |
|
| 139 | + $aboutRes .= substr($about, 0, $istart-1); |
|
| 140 | 140 | $aboutRes .= implode("\n", $donationform); |
| 141 | - $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1); |
|
| 141 | + $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1); |
|
| 142 | 142 | |
| 143 | 143 | return $aboutRes; |
| 144 | 144 | } |
@@ -289,10 +289,10 @@ |
||
| 289 | 289 | /** |
| 290 | 290 | * Get MoreFiles Criteria. |
| 291 | 291 | * @param $criteriaMoreFiles |
| 292 | - * @param $start |
|
| 293 | - * @param $limit |
|
| 294 | - * @param $sort |
|
| 295 | - * @param $order |
|
| 292 | + * @param integer $start |
|
| 293 | + * @param integer $limit |
|
| 294 | + * @param string $sort |
|
| 295 | + * @param string $order |
|
| 296 | 296 | * @return |
| 297 | 297 | */ |
| 298 | 298 | private function getMoreFilesCriteria($criteriaMoreFiles, $start, $limit, $sort, $order) |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | /** |
| 303 | 303 | * Get Defined Language. |
| 304 | - * @param $lang |
|
| 304 | + * @param string $lang |
|
| 305 | 305 | * |
| 306 | 306 | * @return string |
| 307 | 307 | */ |
@@ -437,10 +437,10 @@ discard block |
||
| 437 | 437 | /** |
| 438 | 438 | * Get Tables Criteria. |
| 439 | 439 | * @param $criteriaTables |
| 440 | - * @param $start |
|
| 441 | - * @param $limit |
|
| 442 | - * @param $sort |
|
| 443 | - * @param $order |
|
| 440 | + * @param integer $start |
|
| 441 | + * @param integer $limit |
|
| 442 | + * @param string $sort |
|
| 443 | + * @param string $order |
|
| 444 | 444 | * @return |
| 445 | 445 | */ |
| 446 | 446 | private function getTablesCriteria($criteriaTables, $start, $limit, $sort, $order) |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | /** |
| 303 | 303 | * Get Defined Language. |
| 304 | - * @param $lang |
|
| 304 | + * @param string $lang |
|
| 305 | 305 | * |
| 306 | 306 | * @return string |
| 307 | 307 | */ |
@@ -437,10 +437,10 @@ discard block |
||
| 437 | 437 | /** |
| 438 | 438 | * Get Tables Criteria. |
| 439 | 439 | * @param $criteriaTables |
| 440 | - * @param $start |
|
| 441 | - * @param $limit |
|
| 442 | - * @param $sort |
|
| 443 | - * @param $order |
|
| 440 | + * @param integer $start |
|
| 441 | + * @param integer $limit |
|
| 442 | + * @param string $sort |
|
| 443 | + * @param string $order |
|
| 444 | 444 | * @return |
| 445 | 445 | */ |
| 446 | 446 | private function getTablesCriteria($criteriaTables, $start, $limit, $sort, $order) |
@@ -157,7 +157,6 @@ |
||
| 157 | 157 | * @param $desc |
| 158 | 158 | * @param $index |
| 159 | 159 | * @param $right |
| 160 | - |
|
| 161 | 160 | * @return string |
| 162 | 161 | */ |
| 163 | 162 | private function getModVersionArray($array = 1, $left, $desc = '', $index = null, $right = null, $arrayOptions) |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @private function getPermissionsHeader |
| 75 | 75 | * |
| 76 | 76 | * @param $module |
| 77 | - * @param $language |
|
| 77 | + * @param string $language |
|
| 78 | 78 | * |
| 79 | 79 | * @return string |
| 80 | 80 | */ |
@@ -114,6 +114,10 @@ discard block |
||
| 114 | 114 | * |
| 115 | 115 | * @return string |
| 116 | 116 | */ |
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @param string $language |
|
| 120 | + */ |
|
| 117 | 121 | private function getPermissionsSwitch($moduleDirname, $language) |
| 118 | 122 | { |
| 119 | 123 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -198,7 +202,7 @@ discard block |
||
| 198 | 202 | * |
| 199 | 203 | * @param null |
| 200 | 204 | * |
| 201 | - * @return bool|string |
|
| 205 | + * @return null|string |
|
| 202 | 206 | */ |
| 203 | 207 | public function render() |
| 204 | 208 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $ret .= $xc->getXcXoopsRequest('op', 'op', 'global'); |
| 101 | 101 | $ret .= $xc->getXcLoad('XoopsFormLoader'); |
| 102 | 102 | $optionsSelect = array('global' => "{$language}PERMISSIONS_GLOBAL", 'approve' => "{$language}PERMISSIONS_APPROVE", |
| 103 | - 'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW", ); |
|
| 103 | + 'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW",); |
|
| 104 | 104 | $formSelect = $xc->getXoopsFormSelectExtraOptions('formSelect', '\'\'', 'op', $optionsSelect, 'onchange="document.fselperm.submit()"'); |
| 105 | 105 | $ret .= $cc->getXoopsSimpleForm('permTableForm', 'formSelect', $formSelect, '\'\'', 'fselperm', 'permissions'); |
| 106 | 106 | |
@@ -120,16 +120,16 @@ discard block |
||
| 120 | 120 | $cases = array('global' => array("\$formTitle = {$language}PERMISSIONS_GLOBAL;", |
| 121 | 121 | "\$permName = '{$moduleDirname}_ac';", |
| 122 | 122 | "\$permDesc = {$language}PERMISSIONS_GLOBAL_DESC;", |
| 123 | - "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );", ), |
|
| 123 | + "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );",), |
|
| 124 | 124 | 'approve' => array("\$formTitle = {$language}PERMISSIONS_APPROVE;", |
| 125 | 125 | "\$permName = '{$moduleDirname}_approve';", |
| 126 | - "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;", ), |
|
| 126 | + "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;",), |
|
| 127 | 127 | 'submit' => array("\$formTitle = {$language}PERMISSIONS_SUBMIT;", |
| 128 | 128 | "\$permName = '{$moduleDirname}_submit';", |
| 129 | - "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;", ), |
|
| 129 | + "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;",), |
|
| 130 | 130 | 'view' => array("\$formTitle = {$language}PERMISSIONS_VIEW;", |
| 131 | 131 | "\$permName = '{$moduleDirname}_view';", |
| 132 | - "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;", ), ); |
|
| 132 | + "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;",),); |
|
| 133 | 133 | |
| 134 | 134 | $contentSwitch = $pc->getPhpCodeCaseSwitch($cases, true, false, "\t"); |
| 135 | 135 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param null |
| 33 | 33 | */ |
| 34 | 34 | /** |
| 35 | - * @return Axc |
|
| 35 | + * @return AdminXoopsCode |
|
| 36 | 36 | */ |
| 37 | 37 | public static function getInstance() |
| 38 | 38 | { |
@@ -65,6 +65,10 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @return string |
| 67 | 67 | */ |
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * @param string $stuTableSoleName |
|
| 71 | + */ |
|
| 68 | 72 | public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '') |
| 69 | 73 | { |
| 70 | 74 | $stuType = strtoupper($type); |
@@ -96,6 +100,10 @@ discard block |
||
| 96 | 100 | * |
| 97 | 101 | * @return string |
| 98 | 102 | */ |
| 103 | + |
|
| 104 | + /** |
|
| 105 | + * @param string $language |
|
| 106 | + */ |
|
| 99 | 107 | public function getAxcAddInfoBox($language, $t = '') |
| 100 | 108 | { |
| 101 | 109 | return "{$t}\$adminMenu->addInfoBox({$language});\n"; |
@@ -109,6 +117,10 @@ discard block |
||
| 109 | 117 | * |
| 110 | 118 | * @return string |
| 111 | 119 | */ |
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @param string $language |
|
| 123 | + */ |
|
| 112 | 124 | public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '') |
| 113 | 125 | { |
| 114 | 126 | $aMenu = $t.'$adminMenu->addInfoBoxLine('; |
@@ -129,6 +141,10 @@ discard block |
||
| 129 | 141 | * |
| 130 | 142 | * @return string |
| 131 | 143 | */ |
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * @param string $language |
|
| 147 | + */ |
|
| 132 | 148 | public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '') |
| 133 | 149 | { |
| 134 | 150 | $aMenu = $t.'$adminMenu->addConfigBoxLine('; |
@@ -316,8 +332,8 @@ discard block |
||
| 316 | 332 | /** |
| 317 | 333 | * @public function getAxcFetchMedia |
| 318 | 334 | * |
| 319 | - * @param $anchor |
|
| 320 | - * @param $var |
|
| 335 | + * @param string $anchor |
|
| 336 | + * @param string $var |
|
| 321 | 337 | * |
| 322 | 338 | * @return string |
| 323 | 339 | */ |
@@ -329,7 +345,7 @@ discard block |
||
| 329 | 345 | /** |
| 330 | 346 | * @public function getAxcSetPrefix |
| 331 | 347 | * |
| 332 | - * @param $anchor |
|
| 348 | + * @param string $anchor |
|
| 333 | 349 | * @param $var |
| 334 | 350 | * |
| 335 | 351 | * @return string |
@@ -60,6 +60,7 @@ discard block |
||
| 60 | 60 | * @param string $module |
| 61 | 61 | * @param string $table |
| 62 | 62 | * @param mixed $tables |
| 63 | + * @param string $filename |
|
| 63 | 64 | */ |
| 64 | 65 | public function write($module, $table, $tables, $filename) |
| 65 | 66 | { |
@@ -502,7 +503,7 @@ discard block |
||
| 502 | 503 | * @public function getClassHandler |
| 503 | 504 | * |
| 504 | 505 | * @param string $moduleDirname |
| 505 | - * @param string $tableName |
|
| 506 | + * @param string $table |
|
| 506 | 507 | * @param string $fieldId |
| 507 | 508 | * @param string $fieldMain |
| 508 | 509 | * |
@@ -594,8 +595,8 @@ discard block |
||
| 594 | 595 | * @public function getClassCounter |
| 595 | 596 | * |
| 596 | 597 | * @param $tableName |
| 597 | - * @param $fieldId |
|
| 598 | - * @param $fieldMain |
|
| 598 | + * @param string $fieldId |
|
| 599 | + * @param string $fieldMain |
|
| 599 | 600 | * |
| 600 | 601 | * @return string |
| 601 | 602 | */ |
@@ -622,8 +623,8 @@ discard block |
||
| 622 | 623 | * @public function getClassAll |
| 623 | 624 | * |
| 624 | 625 | * @param $tableName |
| 625 | - * @param $fieldId |
|
| 626 | - * @param $fieldMain |
|
| 626 | + * @param string $fieldId |
|
| 627 | + * @param string $fieldMain |
|
| 627 | 628 | * |
| 628 | 629 | * @return string |
| 629 | 630 | */ |
@@ -650,9 +651,10 @@ discard block |
||
| 650 | 651 | * @public function getClassByCategory |
| 651 | 652 | * |
| 652 | 653 | * @param $tableName |
| 653 | - * @param $fieldId |
|
| 654 | - * @param $fieldMain |
|
| 654 | + * @param string $fieldId |
|
| 655 | + * @param string $fieldMain |
|
| 655 | 656 | * @param $fieldParent |
| 657 | + * @param string $moduleDirname |
|
| 656 | 658 | * |
| 657 | 659 | * @return string |
| 658 | 660 | */ |
@@ -727,8 +729,9 @@ discard block |
||
| 727 | 729 | /** |
| 728 | 730 | * @public function getClassGetTableSolenameById |
| 729 | 731 | * |
| 730 | - * @param $moduleDirname |
|
| 732 | + * @param string $moduleDirname |
|
| 731 | 733 | * @param $table |
| 734 | + * @param string $fieldMain |
|
| 732 | 735 | * |
| 733 | 736 | * @return string |
| 734 | 737 | */ |
@@ -49,6 +49,11 @@ discard block |
||
| 49 | 49 | * @param $module |
| 50 | 50 | * @param $table |
| 51 | 51 | */ |
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @param string $module |
|
| 55 | + * @param string $table |
|
| 56 | + */ |
|
| 52 | 57 | public function initForm($module, $table) |
| 53 | 58 | { |
| 54 | 59 | $this->setModule($module); |
@@ -64,6 +69,10 @@ discard block |
||
| 64 | 69 | * |
| 65 | 70 | * @return string |
| 66 | 71 | */ |
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @param string $language |
|
| 75 | + */ |
|
| 67 | 76 | private function getXoopsFormText($language, $fieldName, $fieldDefault, $required = 'false') |
| 68 | 77 | { |
| 69 | 78 | $tf = TDMCreateFile::getInstance(); |
@@ -94,6 +103,10 @@ discard block |
||
| 94 | 103 | * |
| 95 | 104 | * @return string |
| 96 | 105 | */ |
| 106 | + |
|
| 107 | + /** |
|
| 108 | + * @param string $language |
|
| 109 | + */ |
|
| 97 | 110 | private function getXoopsFormTextArea($language, $fieldName, $required = 'false') |
| 98 | 111 | { |
| 99 | 112 | $tf = TDMCreateFile::getInstance(); |
@@ -117,6 +130,10 @@ discard block |
||
| 117 | 130 | * |
| 118 | 131 | * @return string |
| 119 | 132 | */ |
| 133 | + |
|
| 134 | + /** |
|
| 135 | + * @param string $language |
|
| 136 | + */ |
|
| 120 | 137 | private function getXoopsFormDhtmlTextArea($language, $moduleDirname, $fieldName, $required = 'false') |
| 121 | 138 | { |
| 122 | 139 | $tf = TDMCreateFile::getInstance(); |
@@ -149,6 +166,10 @@ discard block |
||
| 149 | 166 | * |
| 150 | 167 | * @return string |
| 151 | 168 | */ |
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @param string $language |
|
| 172 | + */ |
|
| 152 | 173 | private function getXoopsFormCheckBox($language, $tableSoleName, $fieldName, $fieldElementId, $required = 'false') |
| 153 | 174 | { |
| 154 | 175 | $tf = TDMCreateFile::getInstance(); |
@@ -213,6 +234,10 @@ discard block |
||
| 213 | 234 | * |
| 214 | 235 | * @return string |
| 215 | 236 | */ |
| 237 | + |
|
| 238 | + /** |
|
| 239 | + * @param string $language |
|
| 240 | + */ |
|
| 216 | 241 | private function getXoopsFormImageList($language, $moduleDirname, $tableName, $tableSoleName, $fieldName, $required = 'false') |
| 217 | 242 | { |
| 218 | 243 | $tf = TDMCreateFile::getInstance(); |
@@ -264,6 +289,10 @@ discard block |
||
| 264 | 289 | * |
| 265 | 290 | * @return string |
| 266 | 291 | */ |
| 292 | + |
|
| 293 | + /** |
|
| 294 | + * @param string $language |
|
| 295 | + */ |
|
| 267 | 296 | private function getXoopsFormSelectFile($language, $moduleDirname, $fieldName, $required = 'false') |
| 268 | 297 | { |
| 269 | 298 | $tf = TDMCreateFile::getInstance(); |
@@ -316,6 +345,10 @@ discard block |
||
| 316 | 345 | * |
| 317 | 346 | * @return string |
| 318 | 347 | */ |
| 348 | + |
|
| 349 | + /** |
|
| 350 | + * @param string $language |
|
| 351 | + */ |
|
| 319 | 352 | private function getXoopsFormUrlFile($language, $moduleDirname, $fieldName, $fieldDefault, $required = 'false') |
| 320 | 353 | { |
| 321 | 354 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -345,6 +378,10 @@ discard block |
||
| 345 | 378 | * |
| 346 | 379 | * @return string |
| 347 | 380 | */ |
| 381 | + |
|
| 382 | + /** |
|
| 383 | + * @param string $language |
|
| 384 | + */ |
|
| 348 | 385 | private function getXoopsFormUploadImage($language, $moduleDirname, $tableName, $tableSoleName, $fieldName, $required = 'false') |
| 349 | 386 | { |
| 350 | 387 | $tf = TDMCreateFile::getInstance(); |
@@ -396,6 +433,10 @@ discard block |
||
| 396 | 433 | * |
| 397 | 434 | * @return string |
| 398 | 435 | */ |
| 436 | + |
|
| 437 | + /** |
|
| 438 | + * @param string $language |
|
| 439 | + */ |
|
| 399 | 440 | private function getXoopsFormUploadFile($language, $moduleDirname, $tableName, $fieldName, $required = 'false') |
| 400 | 441 | { |
| 401 | 442 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -421,6 +462,10 @@ discard block |
||
| 421 | 462 | * |
| 422 | 463 | * @return string |
| 423 | 464 | */ |
| 465 | + |
|
| 466 | + /** |
|
| 467 | + * @param string $language |
|
| 468 | + */ |
|
| 424 | 469 | private function getXoopsFormColorPicker($language, $moduleDirname, $fieldName, $required = 'false') |
| 425 | 470 | { |
| 426 | 471 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -446,6 +491,10 @@ discard block |
||
| 446 | 491 | * |
| 447 | 492 | * @return string |
| 448 | 493 | */ |
| 494 | + |
|
| 495 | + /** |
|
| 496 | + * @param string $language |
|
| 497 | + */ |
|
| 449 | 498 | private function getXoopsFormSelectBox($language, $moduleDirname, $tableName, $fieldName, $required = 'false') |
| 450 | 499 | { |
| 451 | 500 | $tf = TDMCreateFile::getInstance(); |
@@ -475,6 +524,10 @@ discard block |
||
| 475 | 524 | * |
| 476 | 525 | * @return string |
| 477 | 526 | */ |
| 527 | + |
|
| 528 | + /** |
|
| 529 | + * @param string $language |
|
| 530 | + */ |
|
| 478 | 531 | private function getXoopsFormSelectUser($language, $moduleDirname, $fieldName, $required = 'false') |
| 479 | 532 | { |
| 480 | 533 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -498,6 +551,10 @@ discard block |
||
| 498 | 551 | * |
| 499 | 552 | * @return string |
| 500 | 553 | */ |
| 554 | + |
|
| 555 | + /** |
|
| 556 | + * @param string $language |
|
| 557 | + */ |
|
| 501 | 558 | private function getXoopsFormRadioYN($language, $fieldName, $required = 'false') |
| 502 | 559 | { |
| 503 | 560 | $tf = TDMCreateFile::getInstance(); |
@@ -522,6 +579,10 @@ discard block |
||
| 522 | 579 | * |
| 523 | 580 | * @return string |
| 524 | 581 | */ |
| 582 | + |
|
| 583 | + /** |
|
| 584 | + * @param string $language |
|
| 585 | + */ |
|
| 525 | 586 | private function getXoopsFormTextDateSelect($language, $fieldName, $required = 'false') |
| 526 | 587 | { |
| 527 | 588 | $tf = TDMCreateFile::getInstance(); |
@@ -549,6 +610,10 @@ discard block |
||
| 549 | 610 | * |
| 550 | 611 | * @return string |
| 551 | 612 | */ |
| 613 | + |
|
| 614 | + /** |
|
| 615 | + * @param string $language |
|
| 616 | + */ |
|
| 552 | 617 | private function getXoopsFormTable($language, $moduleDirname, $tableName, $fieldName, $fieldElement, $required = 'false') |
| 553 | 618 | { |
| 554 | 619 | $tc = TDMCreateHelper::getInstance(); |
@@ -583,6 +648,11 @@ discard block |
||
| 583 | 648 | * |
| 584 | 649 | * @return string |
| 585 | 650 | */ |
| 651 | + |
|
| 652 | + /** |
|
| 653 | + * @param string $language |
|
| 654 | + * @param string $topicTableName |
|
| 655 | + */ |
|
| 586 | 656 | private function getXoopsFormTopic($language, $moduleDirname, $topicTableName, $fieldId, $fieldPid, $fieldMain, $required = 'false') |
| 587 | 657 | { |
| 588 | 658 | $tf = TDMCreateFile::getInstance(); |
@@ -130,9 +130,9 @@ |
||
| 130 | 130 | $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t"); |
| 131 | 131 | $getConfig = $xc->getXcGetConfig($moduleDirname, $moduleDirname.'_editor_'.$rpFieldName); |
| 132 | 132 | $configs = array('name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40, |
| 133 | - 'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig, ); |
|
| 133 | + 'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig,); |
|
| 134 | 134 | foreach ($configs as $c => $d) { |
| 135 | - $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t"); |
|
| 135 | + $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t"); |
|
| 136 | 136 | } |
| 137 | 137 | $formEditor = $cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true); |
| 138 | 138 | $ret .= $cc->getClassAddElement('form', $formEditor.$required); |