| @@ 1161-1169 (lines=9) @@ | ||
| 1158 | * | |
| 1159 | * @return bool|XoopsModule | |
| 1160 | */ | |
| 1161 | public function getModuleByDirname($dirname) | |
| 1162 |     { | |
| 1163 |         $key = "system/module/dirname/{$dirname}"; | |
| 1164 |         if (!$module = $this->cache()->read($key)) { | |
| 1165 | $module = $this->getHandlerModule()->getByDirname($dirname); | |
| 1166 | $this->cache()->write($key, $module); | |
| 1167 | } | |
| 1168 | return $module; | |
| 1169 | } | |
| 1170 | ||
| 1171 | /** | |
| 1172 | * Get Module By Id | |
| @@ 1178-1186 (lines=9) @@ | ||
| 1175 | * | |
| 1176 | * @return bool|XoopsModule | |
| 1177 | */ | |
| 1178 | public function getModuleById($id) | |
| 1179 |     { | |
| 1180 |         $key = "system/module/id/{$id}"; | |
| 1181 |         if (!$module = $this->cache()->read($key)) { | |
| 1182 | $module = $this->getHandlerModule()->getById($id); | |
| 1183 | $this->cache()->write($key, $module); | |
| 1184 | } | |
| 1185 | return $module; | |
| 1186 | } | |
| 1187 | ||
| 1188 | /** | |
| 1189 | * Render Simple Header | |