@@ -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 | } |
@@ -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) { |
@@ -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 | |
@@ -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) { |
@@ -8,6 +8,10 @@ |
||
| 8 | 8 | namespace vsc\presentation\responses; |
| 9 | 9 | |
| 10 | 10 | class HttpResponseType { |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @param integer $iStatus |
|
| 14 | + */ |
|
| 11 | 15 | public static function getStatus($iStatus) { |
| 12 | 16 | return (is_int($iStatus) && array_key_exists($iStatus, static::$aStatusList)) ? static::$aStatusList[$iStatus] : static::$aStatusList[500]; |
| 13 | 17 | } |
@@ -8,7 +8,19 @@ |
||
| 8 | 8 | namespace vsc\presentation\views; |
| 9 | 9 | |
| 10 | 10 | interface RssViewInterface { |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @return string |
|
| 14 | + */ |
|
| 11 | 15 | function getDescription(); |
| 16 | + |
|
| 17 | + /** |
|
| 18 | + * @return string |
|
| 19 | + */ |
|
| 12 | 20 | function getLanguage(); |
| 21 | + |
|
| 22 | + /** |
|
| 23 | + * @return string |
|
| 24 | + */ |
|
| 13 | 25 | function getLastBuildDate(); |
| 14 | 26 | } |
@@ -8,6 +8,10 @@ |
||
| 8 | 8 | namespace vsc\presentation\views; |
| 9 | 9 | |
| 10 | 10 | interface XmlViewInterface { |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @return string |
|
| 14 | + */ |
|
| 11 | 15 | function getContent(); |
| 12 | 16 | |
| 13 | 17 | function getMetaHeaders(); |