@@ -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 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage views |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 09.11.19 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage views |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 09.11.19 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\views; |
9 | 9 | |
10 | 10 | interface RssViewInterface { |
@@ -10,6 +10,9 @@ |
||
10 | 10 | interface XhtmlViewInterface { |
11 | 11 | function getScripts(); |
12 | 12 | |
13 | + /** |
|
14 | + * @return string |
|
15 | + */ |
|
13 | 16 | function getContent(); |
14 | 17 | |
15 | 18 | function getMetaHeaders(); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage views |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 09.11.19 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage views |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 09.11.19 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\views; |
9 | 9 | |
10 | 10 | interface XhtmlViewInterface { |
@@ -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(); |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package presentation |
|
4 | - * @subpackage views |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 2012.08.26 |
|
7 | - */ |
|
3 | + * @package presentation |
|
4 | + * @subpackage views |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 2012.08.26 |
|
7 | + */ |
|
8 | 8 | namespace vsc\presentation\views; |
9 | 9 | |
10 | 10 | interface XmlViewInterface { |
@@ -30,6 +30,9 @@ |
||
30 | 30 | return $this->validContentTypes; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $sRequestMethod |
|
35 | + */ |
|
33 | 36 | public function validRequestMethod($sRequestMethod) { |
34 | 37 | return (in_array($sRequestMethod, $this->getValidRequestMethods())); |
35 | 38 | } |
@@ -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 | } |
@@ -3,8 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use vsc\application\controllers\Html5Controller; |
5 | 5 | |
6 | -class RootMap extends ModuleMap |
|
7 | -{ |
|
6 | +class RootMap extends ModuleMap { |
|
8 | 7 | public function __construct($sPath, $sRegex = '') { |
9 | 8 | parent::__construct($sPath, $sRegex); |
10 | 9 | } |
@@ -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 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package domain |
|
4 | - * @subpackage models |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 09.11.19 |
|
7 | - */ |
|
3 | + * @package domain |
|
4 | + * @subpackage models |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 09.11.19 |
|
7 | + */ |
|
8 | 8 | namespace vsc\domain\models; |
9 | 9 | |
10 | 10 | class EmptyModel extends ModelA implements HttpModelInterface { |
@@ -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 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package application |
|
4 | - * @subpackage controllers |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 2011.02.21 |
|
7 | - */ |
|
3 | + * @package application |
|
4 | + * @subpackage controllers |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 2011.02.21 |
|
7 | + */ |
|
8 | 8 | namespace vsc\domain\models; |
9 | 9 | |
10 | 10 | class StaticFileModel extends CacheableModelA { |
@@ -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 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package domain |
|
4 | - * @subpackage models |
|
5 | - * @author marius orcsik <[email protected]> |
|
6 | - * @date 2010.04.13 |
|
7 | - */ |
|
3 | + * @package domain |
|
4 | + * @subpackage models |
|
5 | + * @author marius orcsik <[email protected]> |
|
6 | + * @date 2010.04.13 |
|
7 | + */ |
|
8 | 8 | namespace vsc\domain\models; |
9 | 9 | |
10 | 10 | use vsc\ExceptionUnimplemented; |
@@ -33,6 +33,9 @@ |
||
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $sVarName |
|
38 | + */ |
|
36 | 39 | public function __set($sVarName, $mValue) { |
37 | 40 | if (vsc::getEnv()->isDevelopment()) { |
38 | 41 | throw new ExceptionUnimplemented('Property [' . get_class($this) . '::' . $sVarName . '] not implemented for writing.'); |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package lib_infrastructure |
|
4 | - * @author marius orcsik <[email protected]> |
|
5 | - * @date 2010.03.30 |
|
6 | - */ |
|
3 | + * @package lib_infrastructure |
|
4 | + * @author marius orcsik <[email protected]> |
|
5 | + * @date 2010.03.30 |
|
6 | + */ |
|
7 | 7 | namespace vsc\infrastructure; |
8 | 8 | |
9 | 9 | use vsc\ExceptionUnimplemented; |