| @@ 128-135 (lines=8) @@ | ||
| 125 | * |
|
| 126 | * @return string |
|
| 127 | */ |
|
| 128 | private function getUserRateSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $language) |
|
| 129 | { |
|
| 130 | $fields = $this->getTableFields($tableMid, $tableId); |
|
| 131 | $cases = array('form' => array($this->getUserRateForm($tableName, $language)), |
|
| 132 | 'save' => array($this->getUserRateSave($moduleDirname, $fields, $tableName, $language)), ); |
|
| 133 | ||
| 134 | return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true); |
|
| 135 | } |
|
| 136 | ||
| 137 | /* |
|
| 138 | * @public function getAdminPagesList |
|
| @@ 214-221 (lines=8) @@ | ||
| 211 | * |
|
| 212 | * @return string |
|
| 213 | */ |
|
| 214 | private function getUserSubmitSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSoleName, $language) |
|
| 215 | { |
|
| 216 | $fields = $this->getTableFields($tableMid, $tableId); |
|
| 217 | $cases = array('form' => array($this->getUserSubmitForm($tableName, $language)), |
|
| 218 | 'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $language)), ); |
|
| 219 | ||
| 220 | return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true); |
|
| 221 | } |
|
| 222 | ||
| 223 | /* |
|
| 224 | * @public function render |
|