@@ -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 | } |
@@ -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 | } |
@@ -63,6 +63,9 @@ |
||
| 63 | 63 | return array_merge($this->aTaintedVars, parent::getVars()); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $sVarName |
|
| 68 | + */ |
|
| 66 | 69 | public function getVar($sVarName) { |
| 67 | 70 | $mValue = parent::getVar($sVarName); |
| 68 | 71 | if (!$mValue) { |
@@ -11,8 +11,7 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @return int |
| 13 | 13 | */ |
| 14 | - public function count() |
|
| 15 | - { |
|
| 14 | + public function count() { |
|
| 16 | 15 | $mirror = new \ReflectionClass($this); |
| 17 | 16 | return count($mirror->getProperties(\ReflectionProperty::IS_PUBLIC)); |
| 18 | 17 | } |
@@ -40,8 +40,7 @@ discard block |
||
| 40 | 40 | * @param mixed $mValue |
| 41 | 41 | * @throws |
| 42 | 42 | */ |
| 43 | - public function offsetSet($sOffset, $mValue) |
|
| 44 | - { |
|
| 43 | + public function offsetSet($sOffset, $mValue) { |
|
| 45 | 44 | $this->__set($sOffset, $mValue); |
| 46 | 45 | } |
| 47 | 46 | |
@@ -49,16 +48,14 @@ discard block |
||
| 49 | 48 | * @param string $sOffset |
| 50 | 49 | * @return bool |
| 51 | 50 | */ |
| 52 | - public function offsetExists($sOffset) |
|
| 53 | - { |
|
| 51 | + public function offsetExists($sOffset) { |
|
| 54 | 52 | return in_array($sOffset, $this->getPropertyNames()); |
| 55 | 53 | } |
| 56 | 54 | |
| 57 | 55 | /** |
| 58 | 56 | * @param string $sOffset |
| 59 | 57 | */ |
| 60 | - public function offsetUnset($sOffset) |
|
| 61 | - { |
|
| 58 | + public function offsetUnset($sOffset) { |
|
| 62 | 59 | $oProperty = new \ReflectionProperty($this, $sOffset); |
| 63 | 60 | if ($oProperty->isPublic()) { |
| 64 | 61 | unset ($this->$sOffset); |
@@ -69,8 +66,7 @@ discard block |
||
| 69 | 66 | * @param string $sOffset |
| 70 | 67 | * @return mixed |
| 71 | 68 | */ |
| 72 | - public function offsetGet($sOffset) |
|
| 73 | - { |
|
| 69 | + public function offsetGet($sOffset) { |
|
| 74 | 70 | return $this->__get($sOffset); |
| 75 | 71 | } |
| 76 | 72 | |
@@ -23,8 +23,9 @@ discard block |
||
| 23 | 23 | * @param string $sOffset |
| 24 | 24 | */ |
| 25 | 25 | protected function setCurrent($sOffset) { |
| 26 | - if ($this->offsetExists($sOffset)) |
|
| 27 | - $this->_current = $sOffset; |
|
| 26 | + if ($this->offsetExists($sOffset)) { |
|
| 27 | + $this->_current = $sOffset; |
|
| 28 | + } |
|
| 28 | 29 | } |
| 29 | 30 | |
| 30 | 31 | /** |
@@ -61,7 +62,9 @@ discard block |
||
| 61 | 62 | $mirror = new \ReflectionClass($this); |
| 62 | 63 | foreach ($mirror->getProperties() as $mirrorProperty) { |
| 63 | 64 | $name = $mirrorProperty->getName(); |
| 64 | - if ($name == '_current') continue; |
|
| 65 | + if ($name == '_current') { |
|
| 66 | + continue; |
|
| 67 | + } |
|
| 65 | 68 | $ret[] = $name; |
| 66 | 69 | } |
| 67 | 70 | |
@@ -72,8 +75,7 @@ discard block |
||
| 72 | 75 | * Iterator interface |
| 73 | 76 | * @return mixed |
| 74 | 77 | */ |
| 75 | - public function current() |
|
| 76 | - { |
|
| 78 | + public function current() { |
|
| 77 | 79 | if (is_null($this->_current)) { |
| 78 | 80 | $this->rewind(); |
| 79 | 81 | } |
@@ -83,8 +85,7 @@ discard block |
||
| 83 | 85 | /** |
| 84 | 86 | * @return string |
| 85 | 87 | */ |
| 86 | - public function key() |
|
| 87 | - { |
|
| 88 | + public function key() { |
|
| 88 | 89 | if (is_null($this->_current)) { |
| 89 | 90 | $this->rewind(); |
| 90 | 91 | } |
@@ -94,8 +95,7 @@ discard block |
||
| 94 | 95 | /** |
| 95 | 96 | * @return void |
| 96 | 97 | */ |
| 97 | - public function next() |
|
| 98 | - { |
|
| 98 | + public function next() { |
|
| 99 | 99 | $aKeys = $this->getPropertyNames(); |
| 100 | 100 | |
| 101 | 101 | $iCurrent = array_search($this->_current, $aKeys); |
@@ -110,8 +110,7 @@ discard block |
||
| 110 | 110 | /** |
| 111 | 111 | * @return void |
| 112 | 112 | */ |
| 113 | - public function rewind() |
|
| 114 | - { |
|
| 113 | + public function rewind() { |
|
| 115 | 114 | $aKeys = $this->getPropertyNames(); |
| 116 | 115 | |
| 117 | 116 | if (is_array($aKeys) && isset($aKeys[0])) { |
@@ -122,8 +121,7 @@ discard block |
||
| 122 | 121 | /** |
| 123 | 122 | * @return bool |
| 124 | 123 | */ |
| 125 | - public function valid() |
|
| 126 | - { |
|
| 124 | + public function valid() { |
|
| 127 | 125 | $aKeys = $this->getPropertyNames(); |
| 128 | 126 | |
| 129 | 127 | if (in_array($this->_current, $aKeys)) { |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @var array |
| 34 | 34 | */ |
| 35 | - protected $aAcceptEncoding = []; |
|
| 35 | + protected $aAcceptEncoding = []; |
|
| 36 | 36 | /** |
| 37 | 37 | * @var array |
| 38 | 38 | */ |
| 39 | - protected $aAcceptLanguage = []; |
|
| 39 | + protected $aAcceptLanguage = []; |
|
| 40 | 40 | /** |
| 41 | 41 | * @var string |
| 42 | 42 | */ |
@@ -52,11 +52,11 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * @var string |
| 54 | 54 | */ |
| 55 | - protected $sIfNoneMatch = ''; |
|
| 55 | + protected $sIfNoneMatch = ''; |
|
| 56 | 56 | /** |
| 57 | 57 | * @var string |
| 58 | 58 | */ |
| 59 | - protected $sContentType = ''; |
|
| 59 | + protected $sContentType = ''; |
|
| 60 | 60 | /** |
| 61 | 61 | * @var bool |
| 62 | 62 | */ |