@@ -115,6 +115,9 @@ discard block |
||
| 115 | 115 | return $this->printrequests; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param boolean $hasTemplates |
|
| 120 | + */ |
|
| 118 | 121 | public function hasTemplates( $hasTemplates = null ) { |
| 119 | 122 | $ret = $this->hasTemplates; |
| 120 | 123 | if ( is_bool( $hasTemplates ) ) { |
@@ -258,6 +261,9 @@ discard block |
||
| 258 | 261 | return ( $force ) ? $this->mLinker : parent::getLinker( $firstcol ); |
| 259 | 262 | } |
| 260 | 263 | |
| 264 | + /** |
|
| 265 | + * @param string $id |
|
| 266 | + */ |
|
| 261 | 267 | private function addConfigToOutput( $id, $config ) { |
| 262 | 268 | |
| 263 | 269 | if ( $this->getParser()->getOutput() !== null ) { |
@@ -153,6 +153,9 @@ discard block |
||
| 153 | 153 | return $output; |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string $value |
|
| 158 | + */ |
|
| 156 | 159 | protected function fillDeliveryArray( $array = [], $value = null ) { |
| 157 | 160 | if ( !is_null( $value ) ) { //don't create any empty entries |
| 158 | 161 | $array[] = $value; |
@@ -194,6 +197,11 @@ discard block |
||
| 194 | 197 | } |
| 195 | 198 | |
| 196 | 199 | //represented by an array of record fields or just a single array value: |
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * @param boolean $containsRecord |
|
| 203 | + * @param boolean $isPageTitle |
|
| 204 | + */ |
|
| 197 | 205 | protected function deliverSingleManyValuesData( $value_items, $containsRecord, $isPageTitle ) { |
| 198 | 206 | if ( empty( $value_items ) ) //happens when one of the higher functions delivers null |
| 199 | 207 | { |
@@ -202,6 +210,10 @@ discard block |
||
| 202 | 210 | return implode( $this->mRecordSep, $value_items ); |
| 203 | 211 | } |
| 204 | 212 | |
| 213 | + /** |
|
| 214 | + * @param boolean $isMissingProperty |
|
| 215 | + * @param boolean $isPageTitle |
|
| 216 | + */ |
|
| 205 | 217 | protected function deliverPropertiesManyValues( $manyValue_items, $isMissingProperty, $isPageTitle, SMWResultArray $data ) { |
| 206 | 218 | if ( empty( $manyValue_items ) ) { |
| 207 | 219 | return null; |
@@ -272,6 +284,9 @@ discard block |
||
| 272 | 284 | return true; |
| 273 | 285 | } |
| 274 | 286 | |
| 287 | + /** |
|
| 288 | + * @param string $dfltCacheKey |
|
| 289 | + */ |
|
| 275 | 290 | protected function initializeCfgValue( $dfltVal, $dfltCacheKey ) { |
| 276 | 291 | $cache = &self::$mDefaultSeps[$dfltCacheKey]; |
| 277 | 292 | if ( !isset( $cache ) ) { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | - * @param $prop |
|
| 273 | + * @param string $prop |
|
| 274 | 274 | * |
| 275 | 275 | * @return array |
| 276 | 276 | */ |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | /** |
| 325 | - * @return bool |
|
| 325 | + * @return string|null |
|
| 326 | 326 | */ |
| 327 | 327 | public function getInitError() { |
| 328 | 328 | return $this->getMapProvider() === '' ? 'srf-filtered-map-provider-missing-error' : null; |
@@ -508,8 +508,8 @@ discard block |
||
| 508 | 508 | * This method should be used for getting new or existing nodes |
| 509 | 509 | * If a node does not exist yet, it will be created |
| 510 | 510 | * |
| 511 | - * @param $id string, node id |
|
| 512 | - * @param $label string, node label |
|
| 511 | + * @param string $id string, node id |
|
| 512 | + * @param string $label string, node label |
|
| 513 | 513 | * |
| 514 | 514 | * @return Object of type ProcessNode |
| 515 | 515 | */ |
@@ -548,6 +548,10 @@ discard block |
||
| 548 | 548 | |
| 549 | 549 | } |
| 550 | 550 | |
| 551 | + /** |
|
| 552 | + * @param string $id |
|
| 553 | + * @param string $label |
|
| 554 | + */ |
|
| 551 | 555 | public function makeRole( $id, $label ) { |
| 552 | 556 | // check if role exists |
| 553 | 557 | if ( isset( $this->m_roles[$id] ) ) { |
@@ -567,6 +571,10 @@ discard block |
||
| 567 | 571 | |
| 568 | 572 | } |
| 569 | 573 | |
| 574 | + /** |
|
| 575 | + * @param string $id |
|
| 576 | + * @param string $label |
|
| 577 | + */ |
|
| 570 | 578 | public function makeRessource( $id, $label ) { |
| 571 | 579 | // check if res exists |
| 572 | 580 | if ( isset( $this->m_ressources[$id] ) ) { |
@@ -652,6 +660,9 @@ discard block |
||
| 652 | 660 | return $this->m_showRessources; |
| 653 | 661 | } |
| 654 | 662 | |
| 663 | + /** |
|
| 664 | + * @param string $name |
|
| 665 | + */ |
|
| 655 | 666 | public function setGraphName( $name ) { |
| 656 | 667 | $this->m_graphName = $name; |
| 657 | 668 | } |
@@ -663,18 +674,30 @@ discard block |
||
| 663 | 674 | return $this->m_graphName; |
| 664 | 675 | } |
| 665 | 676 | |
| 677 | + /** |
|
| 678 | + * @param string $size |
|
| 679 | + */ |
|
| 666 | 680 | public function setGraphSize( $size ) { |
| 667 | 681 | $this->m_graphSize = $size; |
| 668 | 682 | } |
| 669 | 683 | |
| 684 | + /** |
|
| 685 | + * @param string $rankdir |
|
| 686 | + */ |
|
| 670 | 687 | public function setRankdir( $rankdir ) { |
| 671 | 688 | $this->m_rankdir = $rankdir; |
| 672 | 689 | } |
| 673 | 690 | |
| 691 | + /** |
|
| 692 | + * @param string $color |
|
| 693 | + */ |
|
| 674 | 694 | public function setClusterColor( $color ) { |
| 675 | 695 | $this->m_clusterColor = $color; |
| 676 | 696 | } |
| 677 | 697 | |
| 698 | + /** |
|
| 699 | + * @param string $color |
|
| 700 | + */ |
|
| 678 | 701 | public function setHighlightColor( $color ) { |
| 679 | 702 | $this->m_highlightColor = $color; |
| 680 | 703 | } |
@@ -687,6 +710,9 @@ discard block |
||
| 687 | 710 | $this->m_showRedLinks = $show; |
| 688 | 711 | } |
| 689 | 712 | |
| 713 | + /** |
|
| 714 | + * @param string $name |
|
| 715 | + */ |
|
| 690 | 716 | public function setHighlightNode( $name ) { |
| 691 | 717 | $this->m_highlightNode = $name; |
| 692 | 718 | } |
@@ -876,10 +902,16 @@ discard block |
||
| 876 | 902 | return $this->m_status; |
| 877 | 903 | } |
| 878 | 904 | |
| 905 | + /** |
|
| 906 | + * @param string $color |
|
| 907 | + */ |
|
| 879 | 908 | public function setFontColor( $color ) { |
| 880 | 909 | $this->m_fontColor = $color; |
| 881 | 910 | } |
| 882 | 911 | |
| 912 | + /** |
|
| 913 | + * @param ProcessGraph $proc |
|
| 914 | + */ |
|
| 883 | 915 | public function setProcess( $proc ) { |
| 884 | 916 | $this->m_process = $proc; |
| 885 | 917 | } |
@@ -1217,6 +1249,9 @@ discard block |
||
| 1217 | 1249 | $node->addEdgeIn( $this ); |
| 1218 | 1250 | } |
| 1219 | 1251 | |
| 1252 | + /** |
|
| 1253 | + * @param string $cond |
|
| 1254 | + */ |
|
| 1220 | 1255 | public function setConditionText( $cond ) { |
| 1221 | 1256 | $this->m_con_text = $cond; |
| 1222 | 1257 | } |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | /** |
| 104 | 104 | * Returns the description string for this module |
| 105 | 105 | * |
| 106 | - * @return mixed string or array of strings |
|
| 106 | + * @return string[] string or array of strings |
|
| 107 | 107 | */ |
| 108 | 108 | protected function getDescription() { |
| 109 | 109 | return [ |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * @param NodeInterface $child |
| 51 | 51 | * |
| 52 | - * @return NodeTrait |
|
| 52 | + * @return TreeNode |
|
| 53 | 53 | * @throws Exception |
| 54 | 54 | */ |
| 55 | 55 | public function addChild( NodeInterface $child ) { |
@@ -168,6 +168,7 @@ |
||
| 168 | 168 | |
| 169 | 169 | /** |
| 170 | 170 | * @param \SMWResultArray $cell |
| 171 | + * @param integer $columnNumber |
|
| 171 | 172 | * |
| 172 | 173 | * @return string |
| 173 | 174 | */ |
@@ -43,7 +43,6 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * @since 3.1 |
| 45 | 45 | * |
| 46 | - * @param OutlineTree $tree |
|
| 47 | 46 | * |
| 48 | 47 | * @return string |
| 49 | 48 | */ |
@@ -51,6 +50,9 @@ discard block |
||
| 51 | 50 | return $this->tree( $outlineTree ); |
| 52 | 51 | } |
| 53 | 52 | |
| 53 | + /** |
|
| 54 | + * @param OutlineTree $outline_tree |
|
| 55 | + */ |
|
| 54 | 56 | private function tree( $outline_tree, $level = 0 ) { |
| 55 | 57 | $text = ""; |
| 56 | 58 | |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | private $mEndDate; |
| 23 | 23 | |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $title |
|
| 27 | + */ |
|
| 25 | 28 | public function setTitle( $title ) {
|
| 26 | 29 | $this->mTitle = $title; |
| 27 | 30 | } |
@@ -30,6 +33,9 @@ discard block |
||
| 30 | 33 | return $this->mTitle; |
| 31 | 34 | } |
| 32 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $id |
|
| 38 | + */ |
|
| 33 | 39 | public function setID( $id ) {
|
| 34 | 40 | $this->mID = $id; |
| 35 | 41 | } |
@@ -38,10 +44,16 @@ discard block |
||
| 38 | 44 | return $this->mID; |
| 39 | 45 | } |
| 40 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $status |
|
| 49 | + */ |
|
| 41 | 50 | public function setStatus($status){
|
| 42 | 51 | $this->mStatus = $this->mStatus . $status . ', '; |
| 43 | 52 | } |
| 44 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $priority |
|
| 56 | + */ |
|
| 45 | 57 | public function setPriority($priority){
|
| 46 | 58 | $this->mPriority = $this->mPriority . $priority . ', '; |
| 47 | 59 | } |
@@ -81,6 +93,9 @@ discard block |
||
| 81 | 93 | return $this->mPriority; |
| 82 | 94 | } |
| 83 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $startDate |
|
| 98 | + */ |
|
| 84 | 99 | public function setStartDate( $startDate ) {
|
| 85 | 100 | $this->mStartDate = $startDate; |
| 86 | 101 | } |
@@ -89,6 +104,9 @@ discard block |
||
| 89 | 104 | return $this->mStartDate; |
| 90 | 105 | } |
| 91 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $endDate |
|
| 109 | + */ |
|
| 92 | 110 | public function setEndDate( $endDate ) {
|
| 93 | 111 | $this->mEndDate = $endDate; |
| 94 | 112 | } |