Total Complexity | 47 |
Total Lines | 632 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
Complex classes like UserPages often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use UserPages, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
36 | class UserPages extends Files\CreateFile |
||
37 | { |
||
38 | /** |
||
39 | * @var mixed |
||
40 | */ |
||
41 | private $uxc = null; |
||
42 | |||
43 | /** |
||
44 | * @var mixed |
||
45 | */ |
||
46 | private $xc = null; |
||
47 | |||
48 | /** |
||
49 | * @var mixed |
||
50 | */ |
||
51 | private $pc = null; |
||
52 | |||
53 | /** |
||
54 | * @public function constructor |
||
55 | * @param null |
||
56 | */ |
||
57 | public function __construct() |
||
58 | { |
||
59 | parent::__construct(); |
||
60 | $this->xc = Modulebuilder\Files\CreateXoopsCode::getInstance(); |
||
61 | $this->pc = Modulebuilder\Files\CreatePhpCode::getInstance(); |
||
62 | $this->uxc = Modulebuilder\Files\User\UserXoopsCode::getInstance(); |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @static function getInstance |
||
67 | * @param null |
||
68 | * @return UserPages |
||
69 | */ |
||
70 | public static function getInstance() |
||
71 | { |
||
72 | static $instance = false; |
||
73 | if (!$instance) { |
||
74 | $instance = new self(); |
||
75 | } |
||
76 | |||
77 | return $instance; |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * @public function write |
||
82 | * @param $module |
||
83 | * @param $table |
||
84 | * @param $filename |
||
85 | */ |
||
86 | public function write($module, $table, $filename) |
||
87 | { |
||
88 | $this->setModule($module); |
||
89 | $this->setTable($table); |
||
90 | $this->setFileName($filename); |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * @private function getUserPagesHeader |
||
95 | * @param $moduleDirname |
||
96 | * @param $tableName |
||
97 | * @param $fieldId |
||
98 | * @param $tablePermissions |
||
99 | * @param $language |
||
100 | * @return string |
||
101 | */ |
||
102 | private function getUserPagesHeader($moduleDirname, $tableName, $fieldId, $tablePermissions, $language) |
||
103 | { |
||
104 | $stuModuleDirname = \mb_strtoupper($moduleDirname); |
||
105 | $ccFieldId = $this->getCamelCase($fieldId, false, true); |
||
106 | |||
107 | $ret = $this->pc->getPhpCodeUseNamespace(['Xmf', 'Request'], '', ''); |
||
108 | $ret .= $this->pc->getPhpCodeUseNamespace(['XoopsModules', $moduleDirname], '', ''); |
||
109 | $ret .= $this->pc->getPhpCodeUseNamespace(['XoopsModules', $moduleDirname, 'Constants'], '', ''); |
||
110 | $ret .= $this->pc->getPhpCodeUseNamespace(['XoopsModules', $moduleDirname, 'Common']); |
||
111 | $ret .= $this->getRequire(); |
||
112 | $ret .= $this->uxc->getUserTplMain($moduleDirname, $tableName); |
||
113 | $ret .= $this->pc->getPhpCodeIncludeDir('\XOOPS_ROOT_PATH', 'header', true); |
||
114 | $ret .= $this->pc->getPhpCodeBlankLine(); |
||
115 | $ret .= $this->xc->getXcXoopsRequest('op ', 'op', 'list', 'Cmd'); |
||
116 | $ret .= $this->xc->getXcXoopsRequest('start', 'start', '0', 'Int'); |
||
117 | $userpager = $this->xc->getXcGetConfig('userpager'); |
||
118 | $ret .= $this->xc->getXcXoopsRequest('limit', 'limit', $userpager, 'Int'); |
||
119 | $ret .= $this->xc->getXcXoopsRequest($ccFieldId, $fieldId, '0', 'Int'); |
||
120 | $ret .= $this->pc->getPhpCodeBlankLine(); |
||
121 | $ret .= $this->pc->getPhpCodeCommentLine('Define Stylesheet'); |
||
122 | $ret .= $this->xc->getXcXoThemeAddStylesheet(); |
||
123 | $ret .= $this->pc->getPhpCodeCommentLine('Paths'); |
||
124 | $ret .= $this->xc->getXcXoopsTplAssign('xoops_icons32_url', '\XOOPS_ICONS32_URL'); |
||
125 | $ret .= $this->xc->getXcXoopsTplAssign("{$moduleDirname}_url", "\\{$stuModuleDirname}_URL"); |
||
126 | $ret .= $this->pc->getPhpCodeCommentLine('Keywords'); |
||
127 | $ret .= $this->pc->getPhpCodeArray('keywords', null, false, ''); |
||
128 | $ret .= $this->uxc->getUserBreadcrumbs($language, 'index', '', 'index.php'); |
||
129 | $ret .= $this->pc->getPhpCodeCommentLine('Permissions'); |
||
130 | if (1 == $tablePermissions) { |
||
131 | $ret .= $this->xc->getXcEqualsOperator('$permEdit', '$permissionsHandler->getPermGlobalSubmit()'); |
||
132 | $ret .= $this->xc->getXcXoopsTplAssign("permEdit", '$permEdit'); |
||
133 | } |
||
134 | $ret .= $this->xc->getXcXoopsTplAssign("showItem", "\${$ccFieldId} > 0"); |
||
135 | $ret .= $this->pc->getPhpCodeBlankLine(); |
||
136 | |||
137 | return $ret; |
||
138 | } |
||
139 | |||
140 | /** |
||
141 | * @private function getUserPagesList |
||
142 | * @param $moduleDirname |
||
143 | * @param $tableName |
||
144 | * @param $fieldId |
||
145 | * @param $fieldMain |
||
146 | * @param $tableRate |
||
147 | * @param $fieldReads |
||
148 | * @param $language |
||
149 | * @param string $t |
||
150 | * @return string |
||
151 | */ |
||
152 | private function getUserPagesList($moduleDirname, $tableName, $fieldId, $fieldMain, $tableRate, $fieldReads, $language, $t = '') |
||
153 | { |
||
154 | $ucfTableName = \ucfirst($tableName); |
||
155 | $stuTableName = \mb_strtoupper($tableName); |
||
156 | $ccFieldId = $this->getCamelCase($fieldId, false, true); |
||
157 | $ccFieldMain = $this->getCamelCase($fieldMain, false, true); |
||
158 | $ccFieldReads = $this->getCamelCase($fieldReads, false, true); |
||
159 | $stuModuleDirname = \mb_strtoupper($moduleDirname); |
||
160 | |||
161 | $ret = ''; |
||
162 | $ret .= $this->uxc->getUserBreadcrumbs($language, $tableName, 'list', '', "\t\t"); |
||
163 | if ($tableRate) { |
||
164 | $varRate = '$ratingbars'; |
||
165 | $ret .= $this->xc->getXcEqualsOperator($varRate, '(int)' . $this->xc->getXcGetConfig('ratingbars'),'', $t); |
||
166 | $contIf = $this->xc->getXcXoThemeAddStylesheet("\\{$stuModuleDirname}_URL . '/assets/css/rating.css'", $t . "\t", false); |
||
167 | $contIf .= $this->xc->getXcXoopsTplAssign('rating', $varRate, true, $t . "\t"); |
||
168 | $contIf .= $this->xc->getXcXoopsTplAssign('rating_5stars', "(Constants::RATING_5STARS === {$varRate})", true, $t . "\t"); |
||
169 | $contIf .= $this->xc->getXcXoopsTplAssign('rating_10stars', "(Constants::RATING_10STARS === {$varRate})", true, $t . "\t"); |
||
170 | $contIf .= $this->xc->getXcXoopsTplAssign('rating_10num', "(Constants::RATING_10NUM === {$varRate})", true, $t . "\t"); |
||
171 | $contIf .= $this->xc->getXcXoopsTplAssign('rating_likes', "(Constants::RATING_LIKES === {$varRate})", true, $t . "\t"); |
||
172 | $contIf .= $this->xc->getXcXoopsTplAssign('itemid', "'{$fieldId}'", true, $t . "\t"); |
||
173 | $contIf .= $this->xc->getXcXoopsTplAssign($moduleDirname . '_icon_url_16', "\\{$stuModuleDirname}_URL . '/' . \$modPathIcon16", true, $t . "\t"); |
||
174 | $ret .= $this->pc->getPhpCodeConditions($varRate, ' > ', '0', $contIf, false, $t); |
||
175 | } |
||
176 | $critName = 'cr' . $ucfTableName; |
||
177 | $ret .= $this->xc->getXcCriteriaCompo($critName, $t); |
||
178 | $crit = $this->xc->getXcCriteria('', "'{$fieldId}'", "\${$ccFieldId}",'',true); |
||
179 | $contIf = $this->xc->getXcCriteriaAdd($critName, $crit, $t . "\t"); |
||
180 | $ret .= $this->pc->getPhpCodeConditions("\${$ccFieldId}", ' > ', '0', $contIf, false, $t); |
||
181 | $ret .= $this->xc->getXcHandlerCountClear($tableName . 'Count', $tableName, '$' . $critName, $t); |
||
182 | $ret .= $this->xc->getXcXoopsTplAssign($tableName . 'Count', "\${$tableName}Count", '', $t); |
||
183 | $ret .= $this->xc->getXcCriteriaSetStart($critName, '$start', $t); |
||
184 | $ret .= $this->xc->getXcCriteriaSetLimit($critName, '$limit', $t); |
||
185 | $ret .= $this->xc->getXcHandlerAllClear($tableName . 'All', $tableName, '$' . $critName, $t); |
||
186 | $condIf = $this->pc->getPhpCodeArray($tableName, null, false, $t . "\t"); |
||
187 | $condIf .= $this->xc->getXcEqualsOperator("\${$ccFieldMain}", "''",'', $t . "\t"); |
||
188 | $condIf .= $this->pc->getPhpCodeCommentLine('Get All', $ucfTableName, $t . "\t"); |
||
189 | $foreach = $this->xc->getXcGetValues($tableName, $tableName . '[$i]', 'i', false, $t . "\t\t"); |
||
190 | $foreach .= $this->xc->getXcGetVar($ccFieldMain, "{$tableName}All[\$i]", $fieldMain, false, $t . "\t\t"); |
||
191 | $foreach .= $this->xc->getXcEqualsOperator('$keywords[$i]', "\${$ccFieldMain}",'', $t . "\t\t"); |
||
192 | if ($tableRate) { |
||
193 | $itemId = $this->xc->getXcGetVar($ccFieldId, "{$tableName}All[\$i]", $fieldId, true); |
||
194 | $const = $this->xc->getXcGetConstants('TABLE_' . $stuTableName); |
||
195 | $foreach .= $this->xc->getXcEqualsOperator("\${$tableName}[\$i]['rating']", "\$ratingsHandler->getItemRating({$itemId}, {$const})",'', $t . "\t\t"); |
||
196 | } |
||
197 | $condIf .= $this->pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $foreach, $t . "\t"); |
||
198 | $condIf .= $this->xc->getXcXoopsTplAssign($tableName, "\${$tableName}", true, $t . "\t"); |
||
199 | $condIf .= $this->pc->getPhpCodeUnset($tableName, $t . "\t"); |
||
200 | $condIf .= $this->xc->getXcPageNav($tableName, $t . "\t"); |
||
201 | $config = $this->xc->getXcGetConfig('table_type'); |
||
202 | $condIf .= $this->xc->getXcXoopsTplAssign('table_type', $config, true, $t . "\t"); |
||
203 | $config = $this->xc->getXcGetConfig('panel_type'); |
||
204 | $condIf .= $this->xc->getXcXoopsTplAssign('panel_type', $config, true, $t . "\t"); |
||
205 | $divideby = $this->xc->getXcGetConfig('divideby'); |
||
206 | $condIf .= $this->xc->getXcXoopsTplAssign('divideby', $divideby, true, $t . "\t"); |
||
207 | $numbCol = $this->xc->getXcGetConfig('numb_col'); |
||
208 | $condIf .= $this->xc->getXcXoopsTplAssign('numb_col', $numbCol, true, $t . "\t"); |
||
209 | $stripTags = $this->pc->getPhpCodeStripTags('', "\${$ccFieldMain} . ' - ' . " . "\$GLOBALS['xoopsModule']->getVar('name')", true); |
||
210 | $condIf2 = $this->xc->getXcXoopsTplAssign('xoops_pagetitle', $stripTags, true, $t . "\t\t"); |
||
211 | $condIf .= $this->pc->getPhpCodeConditions("'show' == \$op && '' != \${$ccFieldMain}", '', "", $condIf2, false, $t . "\t"); |
||
212 | |||
213 | if ('' !== $fieldReads) { |
||
214 | $condIf3 = $this->xc->getXcHandlerGetObj($tableName, $ccFieldId, $t . "\t\t"); |
||
215 | |||
216 | |||
217 | $getVar = $this->xc->getXcGetVar('', "{$tableName}Obj", $fieldReads, true); |
||
218 | $condIf3 .= $this->xc->getXcEqualsOperator("\${$ccFieldReads}", "(int)" . $getVar . ' + 1', false, $t . "\t\t"); |
||
219 | $condIf3 .= $this->xc->getXcSetVarObj($tableName, $fieldReads, "\${$ccFieldReads}", $t . "\t\t"); |
||
220 | $condIf3 .= $this->pc->getPhpCodeCommentLine('Insert Data', null, $t . "\t\t"); |
||
221 | $insert = $this->xc->getXcHandlerInsert($tableName, $tableName, 'Obj', 'Handler'); |
||
222 | $condIf3 .= $this->getSimpleString($insert .';',$t . "\t\t"); |
||
223 | //$contentInsert = $this->xc->getXcRedirectHeader("'{$tableName}.php?op=list&{$fieldId}=' . \${$ccFieldId}", '', '5', "\${$tableName}Obj->getHtmlErrors()", false, $t . "\t\t\t"); |
||
224 | //$condIf3 .= $this->pc->getPhpCodeConditions('!' . $insert, '', '', $contentInsert, false, $t . "\t\t"); |
||
225 | $condIf .= $this->pc->getPhpCodeConditions("'show' == \$op", '', "", $condIf3, false, $t . "\t"); |
||
226 | |||
227 | } |
||
228 | |||
229 | |||
230 | $ret .= $this->pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, false, $t); |
||
231 | |||
232 | return $ret; |
||
233 | } |
||
234 | |||
235 | /** |
||
236 | * @public function getUserSubmitSave |
||
237 | * @param string $moduleDirname |
||
238 | * @param $fields |
||
239 | * @param string $tableName |
||
240 | * @param $tableSoleName |
||
241 | * @param $tablePermissions |
||
242 | * @param $tableNotifications |
||
243 | * @param $language |
||
244 | * @param string $t |
||
245 | * @return string |
||
246 | */ |
||
247 | public function getUserPagesSave($moduleDirname, $fields, $tableName, $tableSoleName, $tablePermissions, $tableNotifications, $language, $t = '') |
||
360 | } |
||
361 | |||
362 | /** |
||
363 | * @private function getPermissionsSave |
||
364 | * @param $moduleDirname |
||
365 | * @param $ucfFieldId |
||
366 | * @param string $perm |
||
367 | * |
||
368 | * @return string |
||
369 | */ |
||
370 | private function getPermissionsSave($moduleDirname, $ucfFieldId, $perm = 'view') |
||
371 | { |
||
372 | $ret = $this->pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t"); |
||
373 | $ret .= $this->xc->getXcDeleteRight('grouppermHandler', "{$moduleDirname}_{$perm}", '$mid', "\$new{$ucfFieldId}", false, "\t\t\t"); |
||
374 | $content = $this->xc->getXcAddRight('grouppermHandler', "{$moduleDirname}_{$perm}", "\$new{$ucfFieldId}", '$onegroupId', '$mid', false, "\t\t\t\t\t"); |
||
375 | $foreach = $this->pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t"); |
||
376 | $ret .= $this->pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
||
377 | |||
378 | return $ret; |
||
379 | } |
||
380 | |||
381 | /** |
||
382 | * @public function getUserPagesNew |
||
383 | * @param $tableName |
||
384 | * @param $tableSoleName |
||
385 | * @param $tablePermissions |
||
386 | * @param $language |
||
387 | * @param string $t |
||
388 | * @return string |
||
389 | */ |
||
390 | public function getUserPagesNew($tableName, $tableSoleName, $tablePermissions, $language, $t = '') |
||
391 | { |
||
392 | $ret = $this->uxc->getUserBreadcrumbs($language, $tableSoleName, 'add', '', "\t\t"); |
||
393 | if (1 == $tablePermissions) { |
||
394 | $ret .= $this->pc->getPhpCodeCommentLine('Check permissions', '', $t); |
||
395 | $contIf = $this->xc->getXcRedirectHeader($tableName, '?op=list', 3, '\_NOPERM', true, $t . "\t"); |
||
396 | $ret .= $this->pc->getPhpCodeConditions('!$permissionsHandler->getPermGlobalSubmit()', '', '', $contIf, false, $t); |
||
397 | } |
||
398 | $ret .= $this->xc->getXcCommonPagesNew($tableName, $t); |
||
399 | |||
400 | return $ret; |
||
401 | } |
||
402 | |||
403 | /** |
||
404 | * @public function getUserPagesEdit |
||
405 | * @param $tableName |
||
406 | * @param $tableSoleName |
||
407 | * @param $tablePermissions |
||
408 | * @param $fieldId |
||
409 | * @param $language |
||
410 | * @param string $t |
||
411 | * @return string |
||
412 | */ |
||
413 | public function getUserPagesEdit($tableName, $tableSoleName, $tablePermissions, $fieldId, $language, $t = '') |
||
414 | { |
||
415 | $ret = $this->uxc->getUserBreadcrumbs($language, $tableSoleName, 'edit', '', "\t\t"); |
||
416 | $ccFieldId = $this->getCamelCase($fieldId, false, true); |
||
417 | if (1 == $tablePermissions) { |
||
418 | $ret .= $this->pc->getPhpCodeCommentLine('Check permissions', '', $t); |
||
419 | $contIf = $this->xc->getXcRedirectHeader($tableName, '?op=list', 3, '\_NOPERM', true, $t . "\t"); |
||
420 | $ret .= $this->pc->getPhpCodeConditions('!$permissionsHandler->getPermGlobalSubmit()', '', '', $contIf, false, $t); |
||
421 | } |
||
422 | $ret .= $this->pc->getPhpCodeCommentLine('Check params', '', $t); |
||
423 | $contIf = $this->xc->getXcRedirectHeader($tableName, '?op=list', 3, "{$language}INVALID_PARAM", true, $t . "\t"); |
||
424 | $ret .= $this->pc->getPhpCodeConditions("\${$ccFieldId}", ' == ', '0', $contIf, false, $t); |
||
425 | $ret .= $this->xc->getXcCommonPagesEdit($tableName, $ccFieldId, $t); |
||
426 | |||
427 | return $ret; |
||
428 | } |
||
429 | |||
430 | /** |
||
431 | * @public function getUserPagesClone |
||
432 | * @param $tableName |
||
433 | * @param $tableSoleName |
||
434 | * @param $tablePermissions |
||
435 | * @param $fieldId |
||
436 | * @param $language |
||
437 | * @param string $t |
||
438 | * @return string |
||
439 | */ |
||
440 | public function getUserPagesClone($tableName, $tableSoleName, $tablePermissions, $fieldId, $language, $t = '') |
||
441 | { |
||
442 | $ret = $this->uxc->getUserBreadcrumbs($language, $tableSoleName, 'clone', '', "\t\t"); |
||
443 | $ccFieldId = $this->getCamelCase($fieldId, false, true); |
||
444 | if (1 == $tablePermissions) { |
||
445 | $ret .= $this->pc->getPhpCodeCommentLine('Check permissions', '', $t); |
||
446 | $contIf = $this->xc->getXcRedirectHeader($tableName, '?op=list', 3, '\_NOPERM', true, $t . "\t"); |
||
447 | $ret .= $this->pc->getPhpCodeConditions('!$permissionsHandler->getPermGlobalSubmit()', '', '', $contIf, false, $t); |
||
448 | } |
||
449 | $ret .= $this->pc->getPhpCodeCommentLine("Request source", '', $t); |
||
450 | $ret .= $this->xc->getXcXoopsRequest($ccFieldId . 'Source', $fieldId . '_source', '', 'Int', false, $t); |
||
451 | $ret .= $this->pc->getPhpCodeCommentLine('Check params', '', $t); |
||
452 | $contIf = $this->xc->getXcRedirectHeader($tableName, '?op=list', 3, "{$language}INVALID_PARAM", true, $t . "\t"); |
||
453 | $ret .= $this->pc->getPhpCodeConditions("\${$ccFieldId}Source", ' == ', '0', $contIf, false, $t); |
||
454 | $ret .= $this->xc->getXcCommonPagesClone($tableName, $ccFieldId, $t); |
||
455 | |||
456 | return $ret; |
||
457 | } |
||
458 | |||
459 | /** |
||
460 | * @private function getUserPagesDelete |
||
461 | * @param $tableName |
||
462 | * @param $tableSoleName |
||
463 | * @param $tablePermissions |
||
464 | * @param $language |
||
465 | * @param $fieldId |
||
466 | * @param $fieldMain |
||
467 | * @param $tableNotifications |
||
468 | * @param string $t |
||
469 | * @return string |
||
470 | */ |
||
471 | private function getUserPagesDelete($tableName, $tableSoleName, $tablePermissions, $language, $fieldId, $fieldMain, $tableNotifications, $t = '') |
||
486 | } |
||
487 | |||
488 | /** |
||
489 | * @private function getUserPagesBroken |
||
490 | * @param $language |
||
491 | * @param $moduleDirname |
||
492 | * @param $tableName |
||
493 | * @param $tableSoleName |
||
494 | * @param $fieldId |
||
495 | * @param $fieldStatus |
||
496 | * @param $fieldMain |
||
497 | * @param $tableNotifications |
||
498 | * @param string $t |
||
499 | * @return string |
||
500 | */ |
||
501 | private function getUserPagesBroken($language, $moduleDirname, $tableName, $tableSoleName, $fieldId, $fieldStatus, $fieldMain, $tableNotifications, $t = '') |
||
542 | } |
||
543 | |||
544 | /** |
||
545 | * @private function getUserPagesFooter |
||
546 | * @param $moduleDirname |
||
547 | * @param $tableName |
||
548 | * @param $tableComments |
||
549 | * @param $language |
||
550 | * |
||
551 | * @return string |
||
552 | */ |
||
553 | private function getUserPagesFooter($moduleDirname, $tableName, $tableComments, $language) |
||
575 | } |
||
576 | |||
577 | /** |
||
578 | * @private function getUserPagesSwitch |
||
579 | * @param $moduleDirname |
||
580 | * @param $tableId |
||
581 | * @param $tableMid |
||
582 | * @param $tableName |
||
583 | * @param $tableSoleName |
||
584 | * @param $tableSubmit |
||
585 | * @param $tablePermissions |
||
586 | * @param $tableBroken |
||
587 | * @param $fieldId |
||
588 | * @param $fieldMain |
||
589 | * @param $fieldStatus |
||
590 | * @param $tableNotifications |
||
591 | * @param $tableRate |
||
592 | * @param $fieldReads |
||
593 | * @param $language |
||
594 | * @param $t |
||
595 | * @return string |
||
596 | */ |
||
597 | private function getUserPagesSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $tableSubmit, $tablePermissions, $tableBroken, $fieldId, $fieldMain, $fieldStatus, $tableNotifications, $tableRate, $fieldReads, $language, $t) |
||
614 | } |
||
615 | |||
616 | /** |
||
617 | * @public function render |
||
618 | * @param null |
||
619 | * @return bool|string |
||
620 | */ |
||
621 | public function render() |
||
670 |