@@ -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 | } |
@@ -5,6 +5,9 @@ |
||
| 5 | 5 | |
| 6 | 6 | class RootMap extends ModuleMap |
| 7 | 7 | { |
| 8 | + /** |
|
| 9 | + * @param string $sPath |
|
| 10 | + */ |
|
| 8 | 11 | public function __construct($sPath, $sRegex = '') { |
| 9 | 12 | parent::__construct($sPath, $sRegex); |
| 10 | 13 | } |
@@ -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 | } |
@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | protected $sPageTitle = null; |
| 12 | 12 | protected $sPageContent = null; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $sTitle |
|
| 16 | + */ |
|
| 14 | 17 | public function setPageTitle($sTitle) { |
| 15 | 18 | $this->sPageTitle = $sTitle; |
| 16 | 19 | } |
@@ -19,6 +22,9 @@ discard block |
||
| 19 | 22 | return $this->sPageTitle; |
| 20 | 23 | } |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $sContent |
|
| 27 | + */ |
|
| 22 | 28 | public function setPageContent($sContent) { |
| 23 | 29 | $this->sPageContent = $sContent; |
| 24 | 30 | } |
@@ -19,10 +19,16 @@ discard block |
||
| 19 | 19 | $this->setLastModified(date('Y-m-d G:i:s', filemtime($this->getFilePath()))); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @return string |
|
| 24 | + */ |
|
| 22 | 25 | public function getFilePath() { |
| 23 | 26 | return $this->sFilePath; |
| 24 | 27 | } |
| 25 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $sName |
|
| 31 | + */ |
|
| 26 | 32 | public function setFileName($sName) { |
| 27 | 33 | $this->sFileName = $sName; |
| 28 | 34 | } |
@@ -42,6 +48,9 @@ discard block |
||
| 42 | 48 | return $this->sFileContent; |
| 43 | 49 | } |
| 44 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $iMTime |
|
| 53 | + */ |
|
| 45 | 54 | public function setLastModified($iMTime) { |
| 46 | 55 | $this->iLastModified = $iMTime; |
| 47 | 56 | } |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | $this->sXmlString = $sString; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @return string |
|
| 29 | + */ |
|
| 27 | 30 | public function getString() { |
| 28 | 31 | return $this->sXmlString; |
| 29 | 32 | } |
@@ -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(); |
@@ -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) { |