@@ -2,11 +2,24 @@ |
||
| 2 | 2 | namespace vsc\application\sitemaps; |
| 3 | 3 | |
| 4 | 4 | interface ContentTypeMappingInterface { |
| 5 | + |
|
| 6 | + /** |
|
| 7 | + * @return boolean|null |
|
| 8 | + */ |
|
| 5 | 9 | public function setMainTemplatePath($sPath); |
| 6 | 10 | |
| 11 | + /** |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 7 | 14 | public function getMainTemplatePath(); |
| 8 | 15 | |
| 16 | + /** |
|
| 17 | + * @return void |
|
| 18 | + */ |
|
| 9 | 19 | public function setMainTemplate($sPath); |
| 10 | 20 | |
| 21 | + /** |
|
| 22 | + * @return string |
|
| 23 | + */ |
|
| 11 | 24 | public function getMainTemplate(); |
| 12 | 25 | } |
@@ -96,6 +96,9 @@ |
||
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | + /** |
|
| 100 | + * @return string |
|
| 101 | + */ |
|
| 99 | 102 | public function getViewPath() { |
| 100 | 103 | return $this->sViewPath; |
| 101 | 104 | } |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | 159 | * @param string $sPath |
| 160 | - * @return bool |
|
| 160 | + * @return boolean|null |
|
| 161 | 161 | * @throws ExceptionSitemap |
| 162 | 162 | */ |
| 163 | 163 | public function setTemplatePath($sPath) { |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package application |
|
| 4 | - * @subpackage sitemaps |
|
| 5 | - * @author marius orcisk <[email protected]> |
|
| 6 | - * @date 09.11.29 |
|
| 7 | - */ |
|
| 3 | + * @package application |
|
| 4 | + * @subpackage sitemaps |
|
| 5 | + * @author marius orcisk <[email protected]> |
|
| 6 | + * @date 09.11.29 |
|
| 7 | + */ |
|
| 8 | 8 | namespace vsc\application\sitemaps; |
| 9 | 9 | |
| 10 | 10 | use vsc\application\controllers\ExceptionController; |
@@ -500,8 +500,7 @@ |
||
| 500 | 500 | * @param \vsc\infrastructure\Object $mappedObject |
| 501 | 501 | * @return boolean |
| 502 | 502 | */ |
| 503 | - public function maps(Object $mappedObject) |
|
| 504 | - { |
|
| 503 | + public function maps(Object $mappedObject) { |
|
| 505 | 504 | return (bool)stristr(get_class($mappedObject), substr(basename($this->getPath()), 0, -4)); |
| 506 | 505 | } |
| 507 | 506 | |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | - * @return MappingA|null |
|
| 180 | + * @return MappingA |
|
| 181 | 181 | */ |
| 182 | 182 | public function getParentModuleMap() { |
| 183 | 183 | if (MappingA::isValid($this->oCurrentModuleMap)) { |
@@ -10,5 +10,9 @@ |
||
| 10 | 10 | use vsc\infrastructure\caching\CacheableInterface; |
| 11 | 11 | |
| 12 | 12 | abstract class CacheableModelA extends ModelA implements CacheableInterface { |
| 13 | + |
|
| 14 | + /** |
|
| 15 | + * @return string|null |
|
| 16 | + */ |
|
| 13 | 17 | abstract public function getLastModified(); |
| 14 | 18 | } |
@@ -137,6 +137,9 @@ discard block |
||
| 137 | 137 | return self::getTldOf($sSubDomains); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $sHost |
|
| 142 | + */ |
|
| 140 | 143 | public static function getTldOf($sHost) { |
| 141 | 144 | if (ip2long($sHost) > 0 || empty($sHost)) { return false; } |
| 142 | 145 | |
@@ -191,7 +194,7 @@ discard block |
||
| 191 | 194 | } |
| 192 | 195 | |
| 193 | 196 | /** |
| 194 | - * @return Url |
|
| 197 | + * @return string |
|
| 195 | 198 | */ |
| 196 | 199 | static public function getSiteUri() { |
| 197 | 200 | return static::url(static::getRequestUri())->getHost(); |
@@ -263,22 +263,22 @@ |
||
| 263 | 263 | $iCnt = 0; |
| 264 | 264 | foreach ($aPath as $iKey => $sFolder) { |
| 265 | 265 | switch ($sFolder) { |
| 266 | - case '..': |
|
| 267 | - $iCnt++; |
|
| 268 | - |
|
| 269 | - unset ($aPath[$iKey]); |
|
| 270 | - if (array_key_exists($iKey - 1, $aPath)) { |
|
| 271 | - $iPrevKey = $iKey - 1; |
|
| 272 | - } else { |
|
| 273 | - $sPrev = prev($aPath); |
|
| 274 | - $iPrevKey = array_search($sPrev, $aPath); |
|
| 275 | - } |
|
| 276 | - unset ($aPath[$iPrevKey]); |
|
| 277 | - break; |
|
| 278 | - case '.': |
|
| 279 | - case '': |
|
| 280 | - unset ($aPath[$iKey]); |
|
| 281 | - break; |
|
| 266 | + case '..': |
|
| 267 | + $iCnt++; |
|
| 268 | + |
|
| 269 | + unset ($aPath[$iKey]); |
|
| 270 | + if (array_key_exists($iKey - 1, $aPath)) { |
|
| 271 | + $iPrevKey = $iKey - 1; |
|
| 272 | + } else { |
|
| 273 | + $sPrev = prev($aPath); |
|
| 274 | + $iPrevKey = array_search($sPrev, $aPath); |
|
| 275 | + } |
|
| 276 | + unset ($aPath[$iPrevKey]); |
|
| 277 | + break; |
|
| 278 | + case '.': |
|
| 279 | + case '': |
|
| 280 | + unset ($aPath[$iKey]); |
|
| 281 | + break; |
|
| 282 | 282 | } |
| 283 | 283 | } |
| 284 | 284 | |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @returns HttpAuthenticationA |
| 23 | + * @return HttpAuthenticationA |
|
| 23 | 24 | */ |
| 24 | 25 | public function getAuthentication() { |
| 25 | 26 | return $this->oAuth; |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | return $this->password; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param integer $iType |
|
| 34 | + */ |
|
| 32 | 35 | public static function getAuthenticationSchemas($iType) { |
| 33 | 36 | $aSchemas = array(); |
| 34 | 37 | if (($iType & self::BASIC) == self::BASIC) { |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | return $this->iHttpRedirectCode; |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @return string |
|
| 19 | + */ |
|
| 17 | 20 | public function getLocation() { |
| 18 | 21 | return $this->sLocation; |
| 19 | 22 | } |