Test Failed
Push — CI ( 02428e...3e0292 )
by Adam
55:43
created
modules/AOR_Charts/AOR_Chart.php 1 patch
Doc Comments   +73 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
 		parent::Basic();
57 57
 	}
58 58
 
59
+    /**
60
+     * @param string $postKey
61
+     */
59 62
     function save_lines(array $post,AOR_Report $bean,$postKey){
60 63
         $seenIds = array();
61 64
         if(isset($post[$postKey.'id'])) {
@@ -105,12 +108,23 @@  discard block
 block discarded – undo
105 108
         return array('main'=>$main,'highlight'=>$highlight);
106 109
     }
107 110
 
111
+    /**
112
+     * @param pImage $chartPicture
113
+     */
108 114
     function buildChartImageBar($chartPicture,$recordImageMap = false){
109 115
         $scaleSettings = array("DrawSubTicks" => false, "LabelRotation" => 30, 'MinDivHeight' => 50);
110 116
         $chartPicture->drawScale($scaleSettings);
111 117
         $chartPicture->drawBarChart(array("RecordImageMap"=>$recordImageMap));
112 118
     }
113 119
 
120
+    /**
121
+     * @param pImage $chartPicture
122
+     * @param pData $chartData
123
+     * @param integer $imageHeight
124
+     * @param integer $imageWidth
125
+     * @param string $xName
126
+     * @param boolean $recordImageMap
127
+     */
114 128
     function buildChartImagePie($chartPicture,$chartData, $reportData,$imageHeight, $imageWidth, $xName,$recordImageMap){
115 129
         $PieChart = new pPie($chartPicture,$chartData);
116 130
         $x = 0;
@@ -122,12 +136,20 @@  discard block
 block discarded – undo
122 136
         $PieChart->drawPieLegend($imageWidth*0.7,$imageHeight/3, array('FontSize'=>10,"FontName"=>"modules/AOR_Charts/lib/pChart/fonts/verdana.ttf",'BoxSize'=>14));
123 137
     }
124 138
 
139
+    /**
140
+     * @param pImage $chartPicture
141
+     */
125 142
     function buildChartImageLine($chartPicture, $recordImageMap = false){
126 143
         $scaleSettings = array("XMargin"=>10,"YMargin"=>10,"GridR"=>200,"GridG"=>200,"GridB"=>200,'MinDivHeight' => 50,"LabelRotation" => 30);
127 144
         $chartPicture->drawScale($scaleSettings);
128 145
         $chartPicture->drawLineChart(array("RecordImageMap"=>$recordImageMap));
129 146
     }
130 147
 
148
+    /**
149
+     * @param pImage $chartPicture
150
+     * @param pData $chartData
151
+     * @param boolean $recordImageMap
152
+     */
131 153
     function buildChartImageRadar($chartPicture, $chartData,$recordImageMap){
132 154
         $SplitChart = new pRadar();
133 155
         $Options = array("LabelPos"=>RADAR_LABELS_HORIZONTAL,"RecordImageMap"=>$recordImageMap);
@@ -303,6 +325,11 @@  discard block
 block discarded – undo
303 325
         return $chart;
304 326
     }
305 327
 
328
+    /**
329
+     * @param string $chartDataValues
330
+     * @param string $chartLabelValues
331
+     * @param string $chartTooltips
332
+     */
306 333
     private function getRGraphRoseChart($chartDataValues, $chartLabelValues,$chartTooltips, $chartName= '', $chartId, $chartHeight = 400, $chartWidth = 400)
307 334
     {
308 335
         $dataArray = json_decode($chartDataValues);
@@ -340,6 +367,12 @@  discard block
 block discarded – undo
340 367
     //I have not used a parameter for getRGraphBarChart to say whether to group etc, as the future development could be quite different
341 368
     //for both, hence the separate methods.  However, the $grouped parameter allows us to specify whether the chart is grouped (true)
342 369
     //or stacked (false)
370
+
371
+    /**
372
+     * @param string $chartDataValues
373
+     * @param string $chartLabelValues
374
+     * @param string $chartTooltips
375
+     */
343 376
     private function getRGraphGroupedBarChart($chartDataValues, $chartLabelValues,$chartTooltips, $chartName= '', $chartId, $chartHeight = 400, $chartWidth = 400, $grouped = false)
344 377
     {
345 378
         //$keys = array_keys($chartTooltips);
@@ -398,6 +431,11 @@  discard block
 block discarded – undo
398 431
 
399 432
 
400 433
 
434
+    /**
435
+     * @param string $chartDataValues
436
+     * @param string $chartLabelValues
437
+     * @param string $chartTooltips
438
+     */
401 439
     private function getRGraphBarChart($chartDataValues, $chartLabelValues,$chartTooltips, $chartName= '', $chartId, $chartHeight = 400, $chartWidth = 400)
402 440
     {
403 441
         $dataArray = json_decode($chartDataValues);
@@ -437,6 +475,11 @@  discard block
 block discarded – undo
437 475
         return $html;
438 476
     }
439 477
 
478
+    /**
479
+     * @param string $chartDataValues
480
+     * @param string $chartLabelValues
481
+     * @param string $chartTooltips
482
+     */
440 483
     private function getRGraphRadarChart($chartDataValues, $chartLabelValues,$chartTooltips, $chartName= '', $chartId, $chartHeight = 400, $chartWidth = 400)
441 484
     {
442 485
         $dataArray = json_decode($chartDataValues);
@@ -469,6 +512,11 @@  discard block
 block discarded – undo
469 512
         return $html;
470 513
     }
471 514
 
515
+    /**
516
+     * @param string $chartDataValues
517
+     * @param string $chartLabelValues
518
+     * @param string $chartTooltips
519
+     */
472 520
     private function getRGraphPieChart($chartDataValues, $chartLabelValues,$chartTooltips, $chartName= '', $chartId, $chartHeight = 400, $chartWidth = 400)
473 521
     {
474 522
         $dataArray = json_decode($chartDataValues);
@@ -505,6 +553,11 @@  discard block
 block discarded – undo
505 553
         return $html;
506 554
     }
507 555
 
556
+    /**
557
+     * @param string $chartDataValues
558
+     * @param string $chartLabelValues
559
+     * @param string $chartTooltips
560
+     */
508 561
     private function getRGraphLineChart($chartDataValues, $chartLabelValues,$chartTooltips, $chartName= '', $chartId, $chartHeight = 400, $chartWidth = 400)
509 562
     {
510 563
         $dataArray = json_decode($chartDataValues);
@@ -637,6 +690,10 @@  discard block
 block discarded – undo
637 690
     }
638 691
 
639 692
 
693
+    /**
694
+     * @param string $xName
695
+     * @param string $yName
696
+     */
640 697
     private function getRGraphGroupedBarChartData($reportData, $xName,$yName, AOR_Field $mainGroupField){
641 698
 
642 699
 
@@ -706,6 +763,10 @@  discard block
 block discarded – undo
706 763
 
707 764
     }
708 765
 
766
+    /**
767
+     * @param string $xName
768
+     * @param string $yName
769
+     */
709 770
     private function getRGraphBarChartData($reportData, $xName,$yName){
710 771
         $chart['labels']=array();
711 772
         $chart['data']=array();
@@ -753,6 +814,10 @@  discard block
 block discarded – undo
753 814
         return '';
754 815
     }
755 816
 
817
+    /**
818
+     * @param string $xName
819
+     * @param string $yName
820
+     */
756 821
     private function getLineChartData($reportData, $xName,$yName){
757 822
         return $this->getBarChartData($reportData, $xName,$yName);
758 823
     }
@@ -778,10 +843,18 @@  discard block
 block discarded – undo
778 843
         return $this->getBarChartConfig();
779 844
     }
780 845
 
846
+    /**
847
+     * @param string $xName
848
+     * @param string $yName
849
+     */
781 850
     private function getRadarChartData($reportData, $xName,$yName){
782 851
         return $this->getBarChartData($reportData, $xName,$yName);
783 852
     }
784 853
 
854
+    /**
855
+     * @param string $xName
856
+     * @param string $yName
857
+     */
785 858
     private function getPolarChartData($reportData, $xName,$yName){
786 859
         return $this->getPieChartData($reportData, $xName,$yName);
787 860
     }
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pBarcode128.class.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -179,6 +179,10 @@
 block discarded – undo
179 179
 
180 180
    function left($value,$NbChar) { return substr($value,0,$NbChar); }  
181 181
    function right($value,$NbChar) { return substr($value,strlen($value)-$NbChar,$NbChar); }  
182
+
183
+   /**
184
+    * @param integer $NbChar
185
+    */
182 186
    function mid($value,$Depart,$NbChar) { return substr($value,$Depart-1,$NbChar); }  
183 187
   }
184 188
 ?>
185 189
\ No newline at end of file
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pBarcode39.class.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -181,6 +181,9 @@  discard block
 block discarded – undo
181 181
       }
182 182
     }
183 183
 
184
+   /**
185
+    * @param string $string
186
+    */
184 187
    function checksum( $string )
185 188
     {
186 189
      $checksum = 0;
@@ -195,6 +198,11 @@  discard block
 block discarded – undo
195 198
 
196 199
    function left($value,$NbChar) { return substr($value,0,$NbChar); }  
197 200
    function right($value,$NbChar) { return substr($value,strlen($value)-$NbChar,$NbChar); }  
201
+
202
+   /**
203
+    * @param integer $Depart
204
+    * @param integer $NbChar
205
+    */
198 206
    function mid($value,$Depart,$NbChar) { return substr($value,$Depart-1,$NbChar); }  
199 207
   }
200 208
 ?>
201 209
\ No newline at end of file
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pCache.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -235,6 +235,9 @@
 block discarded – undo
235 235
      return(TRUE);
236 236
     }
237 237
 
238
+   /**
239
+    * @param string $Destination
240
+    */
238 241
    function saveFromCache($ID,$Destination)
239 242
     {
240 243
      /* Get the raw picture from the cache */
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pData.class.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -106,6 +106,10 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
    /* Strip VOID values */
109
+
110
+   /**
111
+    * @param string $Values
112
+    */
109 113
    function stripVOID($Values)
110 114
     { if (!is_array($Values)) { return(array()); } $Result = array(); foreach($Values as $Key => $Value) { if ( $Value != VOID ) { $Result[] = $Value; } } return($Result); }
111 115
 
@@ -188,6 +192,10 @@  discard block
 block discarded – undo
188 192
     { $this->Data["XAxisUnit"] = $Unit; }
189 193
 
190 194
    /* Set the serie that will be used as abscissa */
195
+
196
+   /**
197
+    * @param string $Serie
198
+    */
191 199
    function setAbscissa($Serie)
192 200
     { if (isset($this->Data["Series"][$Serie])) { $this->Data["Abscissa"] = $Serie; } }
193 201
 
@@ -525,6 +533,10 @@  discard block
 block discarded – undo
525 533
     }
526 534
 
527 535
    /* Load a palette file */
536
+
537
+   /**
538
+    * @param string $FileName
539
+    */
528 540
    function loadPalette($FileName,$Overwrite=FALSE)
529 541
     {
530 542
      if ( !file_exists($FileName) ) { return(-1); }
@@ -560,6 +572,10 @@  discard block
 block discarded – undo
560 572
     }
561 573
 
562 574
    /* Initialise a given scatter serie */
575
+
576
+   /**
577
+    * @param integer $ID
578
+    */
563 579
    function initScatterSerie($ID)
564 580
     {
565 581
      if ( isset($this->Data["ScatterSeries"][$ID]) ) { return(0); }
@@ -582,6 +598,10 @@  discard block
 block discarded – undo
582 598
     }
583 599
 
584 600
    /* Initialise a given serie */
601
+
602
+   /**
603
+    * @param string $Serie
604
+    */
585 605
    function initialise($Serie)
586 606
     {
587 607
      if ( isset($this->Data["Series"]) ) { $ID = count($this->Data["Series"]); } else { $ID = 0; }
@@ -782,6 +802,10 @@  discard block
 block discarded – undo
782 802
     { return("pData object."); }
783 803
 
784 804
    function left($value,$NbChar)	{ return substr($value,0,$NbChar); }  
805
+
806
+   /**
807
+    * @param integer $NbChar
808
+    */
785 809
    function right($value,$NbChar)	{ return substr($value,strlen($value)-$NbChar,$NbChar); }  
786 810
    function mid($value,$Depart,$NbChar)	{ return substr($value,$Depart-1,$NbChar); }  
787 811
   }
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pDraw.class.php 1 patch
Doc Comments   +44 added lines patch added patch discarded remove patch
@@ -124,6 +124,10 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
    /* Draw a polygon */
127
+
128
+   /**
129
+    * @param string $Points
130
+    */
127 131
    function drawPolygon($Points,$Format="")
128 132
     {
129 133
      $R			= isset($Format["R"]) ? $Format["R"] : 0;
@@ -573,6 +577,10 @@  discard block
 block discarded – undo
573 577
     }
574 578
 
575 579
    /* Drawn a spline based on the bezier function */
580
+
581
+   /**
582
+    * @param string $Coordinates
583
+    */
576 584
    function drawSpline($Coordinates,$Format="")
577 585
     {
578 586
      $R		= isset($Format["R"]) ? $Format["R"] : 0;
@@ -1028,6 +1036,10 @@  discard block
 block discarded – undo
1028 1036
     }
1029 1037
 
1030 1038
    /* Draw a gradient within a defined area */
1039
+
1040
+   /**
1041
+    * @param integer $Direction
1042
+    */
1031 1043
    function drawGradientArea($X1,$Y1,$X2,$Y2,$Direction,$Format="")
1032 1044
     {
1033 1045
      $StartR	= isset($Format["StartR"]) ? $Format["StartR"] : 90;
@@ -1109,6 +1121,11 @@  discard block
 block discarded – undo
1109 1121
     }
1110 1122
 
1111 1123
    /* Draw an aliased pixel */
1124
+
1125
+   /**
1126
+    * @param double $X
1127
+    * @param double $Y
1128
+    */
1112 1129
    function drawAntialiasPixel($X,$Y,$Format="")
1113 1130
     {
1114 1131
      $R     = isset($Format["R"]) ? $Format["R"] : 0;
@@ -1188,6 +1205,10 @@  discard block
 block discarded – undo
1188 1205
     }
1189 1206
 
1190 1207
    /* Convert apha to base 10 */
1208
+
1209
+   /**
1210
+    * @param integer $AlphaValue
1211
+    */
1191 1212
    function convertAlpha($AlphaValue)
1192 1213
     { return((127/100)*(100-$AlphaValue)); }
1193 1214
 
@@ -1205,6 +1226,11 @@  discard block
 block discarded – undo
1205 1226
     }
1206 1227
 
1207 1228
    /* Load a PNG file and draw it over the chart */
1229
+
1230
+   /**
1231
+    * @param double $X
1232
+    * @param double $Y
1233
+    */
1208 1234
    function drawFromPNG($X,$Y,$FileName)
1209 1235
     { $this->drawFromPicture(1,$FileName,$X,$Y); }
1210 1236
 
@@ -2484,6 +2510,9 @@  discard block
 block discarded – undo
2484 2510
       }
2485 2511
     }
2486 2512
 
2513
+   /**
2514
+    * @param integer $ID
2515
+    */
2487 2516
    function isValidLabel($Value,$LastValue,$LabelingMethod,$ID,$LabelSkip)
2488 2517
     {
2489 2518
      if ( $LabelingMethod == LABELING_DIFFERENT && $Value != $LastValue ) { return(TRUE); }
@@ -2495,6 +2524,10 @@  discard block
 block discarded – undo
2495 2524
     }
2496 2525
 
2497 2526
    /* Compute the scale, check for the best visual factors */
2527
+
2528
+   /**
2529
+    * @param double $MaxDivs
2530
+    */
2498 2531
    function computeScale($XMin,$XMax,$MaxDivs,$Factors,$AxisID=0)
2499 2532
     {
2500 2533
      /* Compute each factors */
@@ -2523,6 +2556,10 @@  discard block
 block discarded – undo
2523 2556
     }
2524 2557
 
2525 2558
    /* Compute the best matching scale based on size & factors */
2559
+
2560
+   /**
2561
+    * @param integer $AxisID
2562
+    */
2526 2563
    function processScale($XMin,$XMax,$MaxDivs,$Factors,$AxisID)
2527 2564
     {
2528 2565
      $ScaleHeight = abs(ceil($XMax)-floor($XMin));
@@ -2603,6 +2640,9 @@  discard block
 block discarded – undo
2603 2640
      return($Scale);
2604 2641
     }
2605 2642
 
2643
+   /**
2644
+    * @param double $Value2
2645
+    */
2606 2646
    function modulo($Value1,$Value2)
2607 2647
     {
2608 2648
      if (floor($Value2) == 0) { return(0); }
@@ -5792,6 +5832,10 @@  discard block
 block discarded – undo
5792 5832
     }
5793 5833
 
5794 5834
    /* Draw a label box */
5835
+
5836
+   /**
5837
+    * @param string $Captions
5838
+    */
5795 5839
    function drawLabelBox($X,$Y,$Title,$Captions,$Format="")
5796 5840
     {
5797 5841
      $NoTitle			= isset($Format["NoTitle"]) ? $Format["NoTitle"] : NULL;
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pImage.class.php 1 patch
Doc Comments   +29 added lines patch added patch discarded remove patch
@@ -82,6 +82,12 @@  discard block
 block discarded – undo
82 82
    var $LastChartLayout	= CHART_LAST_LAYOUT_REGULAR;	// Last layout : regular or stacked
83 83
 
84 84
    /* Class constructor */
85
+
86
+   /**
87
+    * @param integer $XSize
88
+    * @param integer $YSize
89
+    * @param pData $DataSet
90
+    */
85 91
    function pImage($XSize,$YSize,$DataSet=NULL,$TransparentBackground=FALSE)
86 92
     {
87 93
      $this->TransparentBackground = $TransparentBackground;
@@ -126,6 +132,13 @@  discard block
 block discarded – undo
126 132
     }
127 133
 
128 134
    /* Set the graph area position */
135
+
136
+   /**
137
+    * @param integer $X1
138
+    * @param integer $Y1
139
+    * @param integer $X2
140
+    * @param integer $Y2
141
+    */
129 142
    function setGraphArea($X1,$Y1,$X2,$Y2)
130 143
     {
131 144
      if ( $X2 < $X1 || $X1 == $X2 || $Y2 < $Y1 || $Y1 == $Y2 ) { return(-1); }
@@ -145,6 +158,10 @@  discard block
 block discarded – undo
145 158
     { return($this->YSize); }
146 159
 
147 160
    /* Render the picture to a file */
161
+
162
+   /**
163
+    * @param string $FileName
164
+    */
148 165
    function render($FileName)
149 166
     {
150 167
      if ( $this->TransparentBackground ) { imagealphablending($this->Picture,false); imagesavealpha($this->Picture,true); }
@@ -268,6 +285,10 @@  discard block
 block discarded – undo
268 285
     { print_r($this->DataSet); }
269 286
 
270 287
    /* Initialise the image map methods */
288
+
289
+   /**
290
+    * @param integer $StorageMode
291
+    */
271 292
    function initialiseImageMap($Name="pChart",$StorageMode=IMAGE_MAP_STORAGE_SESSION,$UniqueID="imageMap",$StorageFolder="tmp")
272 293
     {
273 294
      $this->ImageMapIndex 		= $Name;
@@ -327,6 +348,10 @@  discard block
 block discarded – undo
327 348
     }
328 349
 
329 350
    /* Replace the title of one image map serie */
351
+
352
+   /**
353
+    * @param string $OldTitle
354
+    */
330 355
    function replaceImageMapTitle($OldTitle, $NewTitle)
331 356
     {
332 357
      if ( $this->ImageMapStorageMode == NULL ) { return(-1); }
@@ -403,6 +428,10 @@  discard block
 block discarded – undo
403 428
     }
404 429
 
405 430
    /* Dump the image map */
431
+
432
+   /**
433
+    * @param integer $StorageMode
434
+    */
406 435
    function dumpImageMap($Name="pChart",$StorageMode=IMAGE_MAP_STORAGE_SESSION,$UniqueID="imageMap",$StorageFolder="tmp")
407 436
     {
408 437
      $this->ImageMapIndex 		= $Name;
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pPie.class.php 1 patch
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -697,6 +697,10 @@  discard block
 block discarded – undo
697 697
     }
698 698
 
699 699
    /* Draw the legend of pie chart */
700
+
701
+   /**
702
+    * @param double $X
703
+    */
700 704
    function drawPieLegend($X,$Y,$Format="")
701 705
     {
702 706
      $FontName		= isset($Format["FontName"]) ? $Format["FontName"] : $this->pChartObject->FontName;
@@ -782,6 +786,10 @@  discard block
 block discarded – undo
782 786
     }
783 787
 
784 788
    /* Set the color of the specified slice */
789
+
790
+   /**
791
+    * @param integer $SliceID
792
+    */
785 793
    function setSliceColor($SliceID,$Format="")
786 794
     {
787 795
      $R		= isset($Format["R"]) ? $Format["R"] : 0;
@@ -796,6 +804,13 @@  discard block
 block discarded – undo
796 804
     }
797 805
 
798 806
    /* Internally used compute the label positions */
807
+
808
+   /**
809
+    * @param double $X
810
+    * @param double $Y
811
+    * @param double $Angle
812
+    * @param boolean $Stacked
813
+    */
799 814
    function writePieLabel($X,$Y,$Label,$Angle,$Settings,$Stacked,$Xc=0,$Yc=0,$Radius=0,$Reversed=FALSE)
800 815
     {
801 816
      $LabelOffset	= 30;
@@ -847,6 +862,13 @@  discard block
 block discarded – undo
847 862
     }
848 863
 
849 864
    /* Internally used to shift label positions */
865
+
866
+   /**
867
+    * @param integer $StartAngle
868
+    * @param integer $EndAngle
869
+    * @param double $Offset
870
+    * @param boolean $Reversed
871
+    */
850 872
    function shift($StartAngle,$EndAngle,$Offset,$Reversed)
851 873
     {
852 874
      if ( $Reversed ) { $Offset = -$Offset; }
@@ -1462,6 +1484,10 @@  discard block
 block discarded – undo
1462 1484
    }
1463 1485
 
1464 1486
   /* Reverse an array */
1487
+
1488
+  /**
1489
+   * @param string $Plots
1490
+   */
1465 1491
   function arrayReverse($Plots)
1466 1492
    {
1467 1493
     $Result = "";
Please login to merge, or discard this patch.
modules/AOR_Charts/lib/pChart/class/pSpring.class.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -258,6 +258,11 @@  discard block
 block discarded – undo
258 258
      $this->Data[$SourceID]["Connections"][] = $TargetID;
259 259
     }
260 260
    /* Get the median linked nodes position */
261
+
262
+   /**
263
+    * @param double $X
264
+    * @param double $Y
265
+    */
261 266
    function getMedianOffset($Key,$X,$Y)
262 267
     {
263 268
      $Cpt = 1;
@@ -277,6 +282,10 @@  discard block
 block discarded – undo
277 282
     }
278 283
 
279 284
    /* Return the ID of the attached partner with the biggest weight */
285
+
286
+   /**
287
+    * @return double
288
+    */
280 289
    function getBiggestPartner($Key)
281 290
     {
282 291
      if ( !isset($this->Data[$Key]["Connections"]) ) { return(""); }
Please login to merge, or discard this patch.