@@ -104,6 +104,9 @@ discard block |
||
| 104 | 104 | return $path; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $prefix |
|
| 109 | + */ |
|
| 107 | 110 | private static function cleanpath($prefix, $path="") { |
| 108 | 111 | $path=str_replace("//", "/", $path); |
| 109 | 112 | if($prefix!=="" && !UString::startswith($prefix, "/")) |
@@ -194,6 +197,10 @@ discard block |
||
| 194 | 197 | return [ "path" => $path,"parameters" => $parameters ]; |
| 195 | 198 | } |
| 196 | 199 | |
| 200 | + /** |
|
| 201 | + * @param integer $index |
|
| 202 | + * @param string $paramMatch |
|
| 203 | + */ |
|
| 197 | 204 | private static function scanParam(&$parameters, &$hasOptional, $matches, $index, $paramMatch, $find, &$path, $requirement) { |
| 198 | 205 | if (isset($matches[1][$index])) { |
| 199 | 206 | if ($matches[1][$index] === "...") { |
@@ -213,6 +220,9 @@ discard block |
||
| 213 | 220 | } |
| 214 | 221 | } |
| 215 | 222 | |
| 223 | + /** |
|
| 224 | + * @param string $path |
|
| 225 | + */ |
|
| 216 | 226 | private static function createRouteMethod(&$result, $controllerClass, $path, $httpMethods, $method, $parameters, $name, $cache, $duration) { |
| 217 | 227 | foreach ( $httpMethods as $httpMethod ) { |
| 218 | 228 | $result[$path][$httpMethod]=[ "controller" => $controllerClass,"action" => $method,"parameters" => $parameters,"name" => $name,"cache" => $cache,"duration" => $duration ]; |
@@ -198,6 +198,9 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | + /** |
|
| 202 | + * @param string $viewName |
|
| 203 | + */ |
|
| 201 | 204 | private function authLoadView($viewName,$vars=[]){ |
| 202 | 205 | $files=$this->_getFiles(); |
| 203 | 206 | $mainTemplate=$files->getBaseTemplate(); |
@@ -256,6 +259,9 @@ discard block |
||
| 256 | 259 | return $this->loadView($this->_getFiles()->getViewInfo(),["connected"=>USession::get($this->_getUserSessionKey()),"authURL"=>$this->getBaseUrl(),"bodySelector"=>$this->_getBodySelector()],$this->_displayInfoAsString()); |
| 257 | 260 | } |
| 258 | 261 | |
| 262 | + /** |
|
| 263 | + * @param string $id |
|
| 264 | + */ |
|
| 259 | 265 | protected function fMessage(FlashMessage $fMessage,$id=null){ |
| 260 | 266 | return $this->message($fMessage->getType(), $fMessage->getTitle(), $fMessage->getContent(),$fMessage->getIcon(),$id); |
| 261 | 267 | } |