| @@ 131-148 (lines=18) @@ | ||
| 128 | * |
|
| 129 | * @return |
|
| 130 | */ |
|
| 131 | public function getUserBrokenForm($tableName, $language) |
|
| 132 | { |
|
| 133 | $ret = $this->getCommentLine('Mavigation'); |
|
| 134 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$navigation', "{$language}SUBMIT_PROPOSER"); |
|
| 135 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('navigation', '$navigation'); |
|
| 136 | $ret .= $this->getCommentLine('Title of page'); |
|
| 137 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$title', "{$language}SUBMIT_PROPOSER . ' - '"); |
|
| 138 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$title.', "\$GLOBALS['xoopsModule']->name()"); |
|
| 139 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('xoops_pagetitle', '$title'); |
|
| 140 | $ret .= $this->getCommentLine('Description'); |
|
| 141 | $ret .= $this->usercode->getUserAddMeta('description', $language, 'SUBMIT_PROPOSER'); |
|
| 142 | $ret .= $this->getCommentLine('Form Create'); |
|
| 143 | $ret .= $this->xoopscode->getXoopsCodeObjHandlerCreate($tableName); |
|
| 144 | $ret .= $this->xoopscode->getXoopsCodeGetForm('form', $tableName, 'Obj'); |
|
| 145 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('form', '$form->render()'); |
|
| 146 | ||
| 147 | return $ret; |
|
| 148 | } |
|
| 149 | ||
| 150 | /* |
|
| 151 | * @public function getUserBrokenSave |
|
| @@ 144-161 (lines=18) @@ | ||
| 141 | * |
|
| 142 | * @return string |
|
| 143 | */ |
|
| 144 | public function getUserRateForm($tableName, $language) |
|
| 145 | { |
|
| 146 | $ret = $this->getCommentLine('Mavigation'); |
|
| 147 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$navigation', "{$language}RATE"); |
|
| 148 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('navigation', '$navigation'); |
|
| 149 | $ret .= $this->getCommentLine('Title of page'); |
|
| 150 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$title', "{$language}RATE . ' - '"); |
|
| 151 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$title.', "\$GLOBALS['xoopsModule']->name()"); |
|
| 152 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('xoops_pagetitle', '$title'); |
|
| 153 | $ret .= $this->getCommentLine('Description'); |
|
| 154 | $ret .= $this->usercode->getUserAddMeta('description', $language, 'RATE'); |
|
| 155 | $ret .= $this->getCommentLine('Form Create'); |
|
| 156 | $ret .= $this->xoopscode->getXoopsCodeObjHandlerCreate($tableName); |
|
| 157 | $ret .= $this->xoopscode->getXoopsCodeGetForm('form', $tableName, 'Obj'); |
|
| 158 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('form', '$form->render()'); |
|
| 159 | ||
| 160 | return $ret; |
|
| 161 | } |
|
| 162 | ||
| 163 | /* |
|
| 164 | * @public function getUserRateSave |
|
| @@ 129-146 (lines=18) @@ | ||
| 126 | * |
|
| 127 | * @return string |
|
| 128 | */ |
|
| 129 | public function getUserSubmitForm($tableName, $language) |
|
| 130 | { |
|
| 131 | $ret = $this->getCommentLine('Mavigation'); |
|
| 132 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$navigation', "{$language}SUBMIT_PROPOSER"); |
|
| 133 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('navigation', '$navigation'); |
|
| 134 | $ret .= $this->getCommentLine('Title of page'); |
|
| 135 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$title', "{$language}SUBMIT_PROPOSER . ' - '"); |
|
| 136 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$title.', "\$GLOBALS['xoopsModule']->name()"); |
|
| 137 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('xoops_pagetitle', '$title'); |
|
| 138 | $ret .= $this->getCommentLine('Description'); |
|
| 139 | $ret .= $this->usercode->getUserAddMeta('description', $language, 'SUBMIT_PROPOSER'); |
|
| 140 | $ret .= $this->getCommentLine('Form Create'); |
|
| 141 | $ret .= $this->xoopscode->getXoopsCodeObjHandlerCreate($tableName); |
|
| 142 | $ret .= $this->xoopscode->getXoopsCodeGetForm('form', $tableName, 'Obj'); |
|
| 143 | $ret .= $this->xoopscode->getXoopsCodeTplAssign('form', '$form->render()'); |
|
| 144 | ||
| 145 | return $ret; |
|
| 146 | } |
|
| 147 | ||
| 148 | /* |
|
| 149 | * @public function getUserSubmitSave |
|