Completed
Push — master ( 26776f...d9604e )
by Michael
11:31
created
include/jpgraph/jpgraph_pie3d.php 1 patch
Doc Comments   +40 added lines patch added patch discarded remove patch
@@ -64,6 +64,10 @@  discard block
 block discarded – undo
64 64
 
65 65
     // Specify projection angle for 3D in degrees
66 66
     // Must be between 20 and 70 degrees
67
+
68
+    /**
69
+     * @param integer $a
70
+     */
67 71
     function SetAngle($a) {
68 72
         if( $a<5 || $a>90 ) {
69 73
             JpGraphError::RaiseL(14002);
@@ -74,6 +78,15 @@  discard block
 block discarded – undo
74 78
         }
75 79
     }
76 80
 
81
+    /**
82
+     * @param integer $i
83
+     * @param double $xc
84
+     * @param double $yc
85
+     * @param double $height
86
+     * @param double $width
87
+     * @param double $sa
88
+     * @param double $ea
89
+     */
77 90
     function Add3DSliceToCSIM($i,$xc,$yc,$height,$width,$thick,$sa,$ea) {  //Slice number, ellipse centre (x,y), height, width, start angle, end angle
78 91
 
79 92
         $sa *= M_PI/180;
@@ -175,6 +188,10 @@  discard block
 block discarded – undo
175 188
     }
176 189
 
177 190
     // Draw one 3D pie slice at position ($xc,$yc) with height $z
191
+
192
+    /**
193
+     * @param double $h
194
+     */
178 195
     function Pie3DSlice($img,$xc,$yc,$w,$h,$sa,$ea,$z,$fillcolor,$shadow=0.65) {
179 196
 
180 197
         // Due to the way the 3D Pie algorithm works we are
@@ -384,6 +401,9 @@  discard block
 block discarded – undo
384 401
         $img->PopColor();
385 402
     }
386 403
 
404
+    /**
405
+     * @param integer $aStart
406
+     */
387 407
     function SetStartAngle($aStart) {
388 408
         if( $aStart < 0 || $aStart > 360 ) {
389 409
             JpGraphError::RaiseL(14004);//('Slice start angle must be between 0 and 360 degrees.');
@@ -392,6 +412,13 @@  discard block
 block discarded – undo
392 412
     }
393 413
 
394 414
     // Draw a 3D Pie
415
+
416
+    /**
417
+     * @param integer $aaoption
418
+     * @param double $yc
419
+     * @param integer $angle
420
+     * @param double $z
421
+     */
395 422
     function Pie3D($aaoption,$img,$data,$colors,$xc,$yc,$d,$angle,$z,
396 423
     $shadow=0.65,$startangle=0,$edgecolor="",$edgeweight=1) {
397 424
 
@@ -710,6 +737,13 @@  discard block
 block discarded – undo
710 737
         $img->PopColor();
711 738
     }
712 739
 
740
+    /**
741
+     * @param double $sa
742
+     * @param double $ea
743
+     * @param double $h
744
+     * @param string $edgecolor
745
+     * @param boolean $fulledge
746
+     */
713 747
     function StrokeFullSliceFrame($img,$xc,$yc,$sa,$ea,$w,$h,$z,$edgecolor,$exploderadius,$fulledge) {
714 748
         $step = 0.02;
715 749
 
@@ -865,6 +899,12 @@  discard block
 block discarded – undo
865 899
     // PRIVATE METHODS
866 900
 
867 901
     // Position the labels of each slice
902
+
903
+    /**
904
+     * @param double $a
905
+     * @param double $xp
906
+     * @param double $yp
907
+     */
868 908
     function StrokeLabels($label,$img,$a,$xp,$yp,$z) {
869 909
         $this->value->halign="left";
870 910
         $this->value->valign="top";
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_plotband.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
     protected $linespacing; // Line spacing in pixels
49 49
     protected $iBackgroundColor=-1;  // Default is no background fill
50 50
 
51
+    /**
52
+     * @param string $aColor
53
+     */
51 54
     function __construct($aColor,$aWeight=1) {
52 55
         $this->color = $aColor;
53 56
         $this->weight = $aWeight;
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_plotmark.inc.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -40,6 +40,10 @@  discard block
 block discarded – undo
40 40
     }
41 41
     //---------------
42 42
     // PUBLIC METHODS
43
+
44
+    /**
45
+     * @param integer $aType
46
+     */
43 47
     function SetType($aType,$aFileName='',$aScale=1.0) {
44 48
         $this->type = $aType;
45 49
         if( $aType == MARK_IMG && $aFileName=='' ) {
@@ -61,10 +65,16 @@  discard block
 block discarded – undo
61 65
         return $this->type;
62 66
     }
63 67
 
68
+    /**
69
+     * @param string $aColor
70
+     */
64 71
     function SetColor($aColor) {
65 72
         $this->color=$aColor;
66 73
     }
67 74
 
75
+    /**
76
+     * @param string $aFillColor
77
+     */
68 78
     function SetFillColor($aFillColor) {
69 79
         $this->fill_color = $aFillColor;
70 80
     }
@@ -78,6 +88,9 @@  discard block
 block discarded – undo
78 88
         $this->width=$aWidth;
79 89
     }
80 90
 
91
+    /**
92
+     * @param integer $aWidth
93
+     */
81 94
     function SetWidth($aWidth) {
82 95
         $this->width=$aWidth;
83 96
     }
@@ -123,6 +136,9 @@  discard block
 block discarded – undo
123 136
         return $this->csimareas;
124 137
     }
125 138
 
139
+    /**
140
+     * @param double[] $aPts
141
+     */
126 142
     function AddCSIMPoly($aPts) {
127 143
         $coords = round($aPts[0]).", ".round($aPts[1]);
128 144
         $n = count($aPts)/2;
@@ -489,6 +505,9 @@  discard block
 block discarded – undo
489 505
 // Only supposed to b called as statics
490 506
 class FlagCache {
491 507
 
508
+    /**
509
+     * @param integer $aSize
510
+     */
492 511
     static function GetFlagImgByName($aSize,$aName) {
493 512
         global $_gFlagCache;
494 513
         require_once('jpgraph_flags.php');
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_polar.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -159,6 +159,9 @@  discard block
 block discarded – undo
159 159
     private $show_angle_tick=true;
160 160
     private $radius_tick_color='black';
161 161
 
162
+    /**
163
+     * @param RotImage $img
164
+     */
162 165
     function __construct($img,$aScale) {
163 166
         parent::__construct($img,$aScale);
164 167
     }
@@ -216,6 +219,10 @@  discard block
 block discarded – undo
216 219
     }
217 220
 
218 221
     // Private methods
222
+
223
+    /**
224
+     * @param integer $pos
225
+     */
219 226
     function StrokeGrid($pos) {
220 227
         $x = round($this->img->left_margin + $this->img->plotwidth/2);
221 228
         $this->scale->ticks->Stroke($this->img,$this->scale,$pos);
@@ -307,6 +314,9 @@  discard block
 block discarded – undo
307 314
         }
308 315
     }
309 316
 
317
+    /**
318
+     * @param integer $pos
319
+     */
310 320
     function StrokeAngleLabels($pos,$type) {
311 321
 
312 322
         if( !$this->show_angle_label )
@@ -492,6 +502,9 @@  discard block
 block discarded – undo
492 502
         }
493 503
     }
494 504
 
505
+    /**
506
+     * @param integer $pos
507
+     */
495 508
     function Stroke($pos,$dummy=true) {
496 509
 
497 510
         $this->img->SetLineWeight($this->weight);
@@ -589,6 +602,11 @@  discard block
 block discarded – undo
589 602
     private $graph;
590 603
     public $clockwise=false;
591 604
 
605
+    /**
606
+     * @param integer $aMax
607
+     * @param PolarGraph $graph
608
+     * @param boolean $aClockwise
609
+     */
592 610
     function __construct($aMax,$graph,$aClockwise) {
593 611
         parent::__construct(0,$aMax,'x');
594 612
         $this->graph = $graph;
@@ -599,6 +617,9 @@  discard block
 block discarded – undo
599 617
         $this->clockwise = $aFlg;
600 618
     }
601 619
 
620
+    /**
621
+     * @param integer $v
622
+     */
602 623
     function _Translate($v) {
603 624
         return parent::Translate($v);
604 625
     }
@@ -634,6 +655,10 @@  discard block
 block discarded – undo
634 655
     private $graph;
635 656
     public $clockwise=false;
636 657
 
658
+    /**
659
+     * @param integer $aMax
660
+     * @param PolarGraph $graph
661
+     */
637 662
     function __construct($aMax,$graph,$aClockwise=false) {
638 663
         parent::__construct(0,$aMax,'x');
639 664
         $this->graph = $graph;
@@ -688,6 +713,9 @@  discard block
 block discarded – undo
688 713
         $this->SetMarginColor('white');
689 714
     }
690 715
 
716
+    /**
717
+     * @param integer $aDense
718
+     */
691 719
     function SetDensity($aDense) {
692 720
         $this->SetTickDensity(TICKD_NORMAL,$aDense);
693 721
     }
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_radar.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -220,6 +220,10 @@  discard block
 block discarded – undo
220 220
     private $title_color='navy';
221 221
     private $len=0;
222 222
 
223
+    /**
224
+     * @param RotImage $img
225
+     * @param LinearScale $aScale
226
+     */
223 227
     function __construct($img,$aScale,$color=array(0,0,0)) {
224 228
         parent::__construct($img,$aScale,$color);
225 229
         $this->len = $img->plotheight;
@@ -233,6 +237,11 @@  discard block
 block discarded – undo
233 237
     // $aAxisAngle = Axis angle
234 238
     // $grid   = Returns an array with positions used to draw the grid
235 239
     // $lf   = Label flag, TRUE if the axis should have labels
240
+
241
+    /**
242
+     * @param double $aAxisAngle
243
+     * @param boolean $lf
244
+     */
236 245
     function Stroke($pos,$aAxisAngle,&$grid,$title,$lf) {
237 246
         $this->img->SetColor($this->color);
238 247
 
@@ -280,6 +289,9 @@  discard block
 block discarded – undo
280 289
         $this->_StrokeAxisTitle($pos,$aAxisAngle,$title);
281 290
     }
282 291
 
292
+    /**
293
+     * @param double $pos
294
+     */
283 295
     function _StrokeAxisTitle($pos,$aAxisAngle,$title) {
284 296
         $this->title->Set($title);
285 297
         $marg=6+$this->title->margin;
@@ -359,6 +371,9 @@  discard block
 block discarded – undo
359 371
         $this->show=$aShowMajor;
360 372
     }
361 373
 
374
+    /**
375
+     * @param RotImage $img
376
+     */
362 377
     function Stroke($img,$grid) {
363 378
         if( !$this->show ) {
364 379
             return;
@@ -436,6 +451,9 @@  discard block
 block discarded – undo
436 451
         $this->weight=$w;
437 452
     }
438 453
 
454
+    /**
455
+     * @param boolean $aColor
456
+     */
439 457
     function SetFillColor($aColor) {
440 458
         $this->fill_color = $aColor;
441 459
         $this->fill = true;
@@ -575,6 +593,9 @@  discard block
 block discarded – undo
575 593
         $this->yscale->ticks->SupressMinorTickMarks(!$aFlag);
576 594
     }
577 595
 
596
+    /**
597
+     * @param string $axtype
598
+     */
578 599
     function SetScale($axtype,$ymin=1,$ymax=1,$dummy1=null,$dumy2=null) {
579 600
         if( $axtype != 'lin' && $axtype != 'log' ) {
580 601
             JpGraphError::RaiseL(18003,$axtype);
@@ -606,6 +627,9 @@  discard block
 block discarded – undo
606 627
         $this->SetSize($aSize);
607 628
     }
608 629
 
630
+    /**
631
+     * @param integer $densy
632
+     */
609 633
     function SetTickDensity($densy=TICKD_NORMAL,$dummy1=null) {
610 634
         $this->ytick_factor=25;
611 635
         switch( $densy ) {
@@ -646,6 +670,9 @@  discard block
 block discarded – undo
646 670
         }
647 671
     }
648 672
 
673
+    /**
674
+     * @param integer[] $aColor
675
+     */
649 676
     function SetColor($aColor) {
650 677
         $this->SetMarginColor($aColor);
651 678
     }
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_regstat.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * range 0 $mu < 1 where 0 is tha start point and 1 is the end point. Note that every newly computed
170 170
      * point depends on all the existing points
171 171
      *
172
-     * @param $mu Position on the bezier curve
172
+     * @param double $mu Position on the bezier curve
173 173
      * @return array($x, $y)
174 174
      */
175 175
     function GetPoint($mu) {
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_rgb.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -594,6 +594,10 @@
 block discarded – undo
594 594
     // The $aDynamicRange specified how much of the dynamic range we shold use
595 595
     // a value of 1.0 give the full dyanmic range and a lower value give more dark
596 596
     // colors. In the extreme of 0.0 then all colors will be black.
597
+
598
+    /**
599
+     * @param integer $aVal
600
+     */
597 601
     static function GetSpectrum($aVal,$aDynamicRange=1.0) {
598 602
         if( $aVal < 0 || $aVal > 1.0001 ) {
599 603
             return array(0,0,0); // Invalid case - just return black
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_stock.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -164,6 +164,13 @@
 block discarded – undo
164 164
     }
165 165
 
166 166
     // A hook for subclasses to modify the plot
167
+
168
+    /**
169
+     * @param integer $i
170
+     * @param double $xl
171
+     * @param double $xr
172
+     * @param boolean $neg
173
+     */
167 174
     function ModBox($img,$xscale,$yscale,$i,$xl,$xr,$neg) {}
168 175
 
169 176
 } // Class
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_text.inc.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -71,11 +71,19 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     // Alias
74
+
75
+    /**
76
+     * @param string $aHAlign
77
+     */
74 78
     function SetAlign($aHAlign,$aVAlign="top",$aParagraphAlign="") {
75 79
         $this->Align($aHAlign,$aVAlign,$aParagraphAlign);
76 80
     }
77 81
 
78 82
     // Specifies the alignment for a multi line text
83
+
84
+    /**
85
+     * @param string $aAlign
86
+     */
79 87
     function ParagraphAlign($aAlign) {
80 88
         $this->paragraph_align = $aAlign;
81 89
     }
@@ -141,6 +149,10 @@  discard block
 block discarded – undo
141 149
     }
142 150
 
143 151
     // Center the text between $left and $right coordinates
152
+
153
+    /**
154
+     * @param integer $aLeft
155
+     */
144 156
     function Center($aLeft,$aRight,$aYAbsPos=false) {
145 157
         $this->x = $aLeft + ($aRight-$aLeft )/2;
146 158
         $this->halign = "center";
@@ -149,6 +161,10 @@  discard block
 block discarded – undo
149 161
     }
150 162
 
151 163
     // Set text color
164
+
165
+    /**
166
+     * @param string $aColor
167
+     */
152 168
     function SetColor($aColor) {
153 169
         $this->color = $aColor;
154 170
     }
@@ -203,6 +219,10 @@  discard block
 block discarded – undo
203 219
 
204 220
     // Set the margin which will be interpretated differently depending
205 221
     // on the context.
222
+
223
+    /**
224
+     * @param integer $aMarg
225
+     */
206 226
     function SetMargin($aMarg) {
207 227
         $this->margin = $aMarg;
208 228
     }
Please login to merge, or discard this patch.