Completed
Push — master ( 26776f...d9604e )
by Michael
11:31
created
include/jpgraph/jpgraph_errhandler.inc.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -110,6 +110,10 @@  discard block
 block discarded – undo
110 110
         GLOBAL $__jpg_err_locale ;
111 111
         $__jpg_err_locale = $aLoc;
112 112
     }
113
+
114
+    /**
115
+     * @param integer $errnbr
116
+     */
113 117
     public static function RaiseL($errnbr,$a1=null,$a2=null,$a3=null,$a4=null,$a5=null) {
114 118
         throw new JpGraphExceptionL($errnbr,$a1,$a2,$a3,$a4,$a5);
115 119
     }
@@ -125,6 +129,10 @@  discard block
 block discarded – undo
125 129
     public static function GetLogFile() {
126 130
         return self::$__iLogFile;
127 131
     }
132
+
133
+    /**
134
+     * @param string $aTitle
135
+     */
128 136
     public static function SetTitle($aTitle) {
129 137
         self::$__iTitle = $aTitle;
130 138
     }
@@ -201,15 +209,25 @@  discard block
 block discarded – undo
201 209
         // Empty. Reserved for future use
202 210
     }
203 211
 
212
+    /**
213
+     * @param string $aTitle
214
+     */
204 215
     function SetTitle($aTitle) {
205 216
         $this->iTitle = $aTitle;
206 217
     }
207 218
 
219
+    /**
220
+     * @param string $aDest
221
+     */
208 222
     function SetStrokeDest($aDest) {
209 223
         $this->iDest = $aDest;
210 224
     }
211 225
 
212 226
     // If aHalt is true then execution can't continue. Typical used for fatal errors
227
+
228
+    /**
229
+     * @param string $aMsg
230
+     */
213 231
     function Raise($aMsg,$aHalt=false) {
214 232
         if( $this->iDest != '' ) {
215 233
             if( $this->iDest == 'syslog' ) {
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_flags.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -288,6 +288,10 @@  discard block
 block discarded – undo
288 288
         return $this->iFlagCount;
289 289
     }
290 290
 
291
+    /**
292
+     * @param string $aName
293
+     * @param string $outFullName
294
+     */
291 295
     function GetImgByName($aName,&$outFullName) {
292 296
         $idx = $this->GetIdxByName($aName,$outFullName);
293 297
 
@@ -306,6 +310,9 @@  discard block
 block discarded – undo
306 310
         }
307 311
     }
308 312
 
313
+    /**
314
+     * @param integer $aOrd
315
+     */
309 316
     function GetIdxByOrdinal($aOrd,&$outFullName) {
310 317
         $aOrd--;
311 318
         $n = count($this->iOrdIdx);
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_gantt.php 1 patch
Doc Comments   +106 added lines patch added patch discarded remove patch
@@ -124,6 +124,10 @@  discard block
 block discarded – undo
124 124
 
125 125
 // Check if array_fill() exists
126 126
 if (!function_exists('array_fill')) {
127
+
128
+    /**
129
+     * @param integer $iStart
130
+     */
127 131
     function array_fill($iStart, $iLen, $vValue) {
128 132
         $aResult = array();
129 133
         for ($iCount = $iStart; $iCount < $iLen + $iStart; $iCount++) {
@@ -210,6 +214,9 @@  discard block
 block discarded – undo
210 214
         }
211 215
     }
212 216
 
217
+    /**
218
+     * @param RotImage $aImg
219
+     */
213 220
     function GetWidth($aImg) {
214 221
         $txt = new TextProperty();
215 222
         $txt->SetFont($this->iFFamily,$this->iFStyle,$this->iFSize);
@@ -1587,6 +1594,10 @@  discard block
 block discarded – undo
1587 1594
     }
1588 1595
 
1589 1596
     // Set text color
1597
+
1598
+    /**
1599
+     * @param string $aColor
1600
+     */
1590 1601
     function SetColor($aColor) {
1591 1602
         $this->iColor = $aColor;
1592 1603
     }
@@ -1611,12 +1622,20 @@  discard block
 block discarded – undo
1611 1622
     }
1612 1623
 
1613 1624
     // Set alignment
1625
+
1626
+    /**
1627
+     * @param string $aHAlign
1628
+     */
1614 1629
     function Align($aHAlign,$aVAlign="bottom") {
1615 1630
         $this->iHAlign=$aHAlign;
1616 1631
         $this->iVAlign=$aVAlign;
1617 1632
     }
1618 1633
 
1619 1634
     // Synonym
1635
+
1636
+    /**
1637
+     * @param string $aHAlign
1638
+     */
1620 1639
     function SetAlign($aHAlign,$aVAlign="bottom") {
1621 1640
         $this->iHAlign=$aHAlign;
1622 1641
         $this->iVAlign=$aVAlign;
@@ -1859,6 +1878,9 @@  discard block
 block discarded – undo
1859 1878
         $this->iShowLabels = $aShow;
1860 1879
     }
1861 1880
 
1881
+    /**
1882
+     * @param integer $aInt
1883
+     */
1862 1884
     function SetIntervall($aInt) {
1863 1885
         $this->iIntervall = $aInt;
1864 1886
     }
@@ -1871,6 +1893,10 @@  discard block
 block discarded – undo
1871 1893
         return $this->iIntervall ;
1872 1894
     }
1873 1895
 
1896
+    /**
1897
+     * @param integer $aFFamily
1898
+     * @param integer $aFStyle
1899
+     */
1874 1900
     function SetFont($aFFamily,$aFStyle=FS_NORMAL,$aFSize=10) {
1875 1901
         $this->iFFamily = $aFFamily;
1876 1902
         $this->iFStyle  = $aFStyle;
@@ -1887,18 +1913,28 @@  discard block
 block discarded – undo
1887 1913
         return $aImg->GetFontHeight();
1888 1914
     }
1889 1915
 
1916
+    /**
1917
+     * @param RotImage $aImg
1918
+     */
1890 1919
     function GetFontWidth($aImg) {
1891 1920
         $aImg->SetFont($this->iFFamily,$this->iFStyle,$this->iFSize);
1892 1921
 
1893 1922
         return $aImg->GetFontWidth();
1894 1923
     }
1895 1924
 
1925
+    /**
1926
+     * @param RotImage $aImg
1927
+     * @param string $aStr
1928
+     */
1896 1929
     function GetStrWidth($aImg,$aStr) {
1897 1930
         $aImg->SetFont($this->iFFamily,$this->iFStyle,$this->iFSize);
1898 1931
 
1899 1932
         return $aImg->GetTextWidth($aStr);
1900 1933
     }
1901 1934
 
1935
+    /**
1936
+     * @param integer $aStyle
1937
+     */
1902 1938
     function SetStyle($aStyle) {
1903 1939
         $this->iStyle = $aStyle;
1904 1940
     }
@@ -1971,6 +2007,10 @@  discard block
 block discarded – undo
1971 2007
 
1972 2008
     //---------------
1973 2009
     // CONSTRUCTOR
2010
+
2011
+    /**
2012
+     * @param RotImage $aImg
2013
+     */
1974 2014
     function __construct($aImg) {
1975 2015
         $this->iImg = $aImg;
1976 2016
         $this->iDateLocale = new DateLocale();
@@ -2070,6 +2110,10 @@  discard block
 block discarded – undo
2070 2110
     // Specify the width of the titles(labels) for the activities
2071 2111
     // (This is by default set to the minimum width enought for the
2072 2112
     // widest title)
2113
+
2114
+    /**
2115
+     * @param integer $aLabelWidth
2116
+     */
2073 2117
     function SetLabelWidth($aLabelWidth) {
2074 2118
         $this->iLabelWidth=$aLabelWidth;
2075 2119
     }
@@ -2223,6 +2267,10 @@  discard block
 block discarded – undo
2223 2267
     }
2224 2268
 
2225 2269
     // Get week number
2270
+
2271
+    /**
2272
+     * @param integer $aDate
2273
+     */
2226 2274
     function GetWeekNbr($aDate,$aSunStart=true) {
2227 2275
         // We can't use the internal strftime() since it gets the weeknumber
2228 2276
         // wrong since it doesn't follow ISO on all systems since this is
@@ -2271,6 +2319,10 @@  discard block
 block discarded – undo
2271 2319
     }
2272 2320
 
2273 2321
     // Get current year
2322
+
2323
+    /**
2324
+     * @param integer $aDate
2325
+     */
2274 2326
     function GetYear($aDate) {
2275 2327
         return 0+Date("Y",$aDate);
2276 2328
     }
@@ -2286,16 +2338,28 @@  discard block
 block discarded – undo
2286 2338
     }
2287 2339
 
2288 2340
     // Get day in month
2341
+
2342
+    /**
2343
+     * @param integer $aDate
2344
+     */
2289 2345
     function GetMonthDayNbr($aDate) {
2290 2346
         return 0+strftime("%d",$aDate);
2291 2347
     }
2292 2348
 
2293 2349
     // Get day in year
2350
+
2351
+    /**
2352
+     * @param integer $aDate
2353
+     */
2294 2354
     function GetYearDayNbr($aDate) {
2295 2355
         return 0+strftime("%j",$aDate);
2296 2356
     }
2297 2357
 
2298 2358
     // Get month number
2359
+
2360
+    /**
2361
+     * @param integer $aDate
2362
+     */
2299 2363
     function GetMonthNbr($aDate) {
2300 2364
         return 0+strftime("%m",$aDate);
2301 2365
     }
@@ -2374,6 +2438,9 @@  discard block
 block discarded – undo
2374 2438
 
2375 2439
     // Convert a time string to minutes
2376 2440
 
2441
+    /**
2442
+     * @param integer $aTimeString
2443
+     */
2377 2444
     function TimeToMinutes($aTimeString) {
2378 2445
         // Split in hours and minutes
2379 2446
         $pos=strpos($aTimeString,':');
@@ -2877,6 +2944,10 @@  discard block
 block discarded – undo
2877 2944
     }
2878 2945
 
2879 2946
     // Stroke year scale and gridlines
2947
+
2948
+    /**
2949
+     * @param integer $aYCoord
2950
+     */
2880 2951
     function StrokeYears($aYCoord,$getHeight=false) {
2881 2952
         if( $this->year->iShowLabels ) {
2882 2953
             $img=$this->iImg;
@@ -3046,6 +3117,10 @@  discard block
 block discarded – undo
3046 3117
 
3047 3118
     //---------------
3048 3119
     // CONSTRUCTOR
3120
+
3121
+    /**
3122
+     * @param string $aColor
3123
+     */
3049 3124
     function __construct($aRow,$aType,$aColor,$aArrowSize,$aArrowType){
3050 3125
         $this->iConstrainType = $aType;
3051 3126
         $this->iConstrainRow = $aRow;
@@ -3105,10 +3180,18 @@  discard block
 block discarded – undo
3105 3180
         $this->csimalt=$aAlt;
3106 3181
     }
3107 3182
 
3183
+    /**
3184
+     * @param integer $aArrowSize
3185
+     * @param integer $aArrowType
3186
+     */
3108 3187
     function SetConstrain($aRow,$aType,$aColor='black',$aArrowSize=ARROW_S2,$aArrowType=ARROWT_SOLID) {
3109 3188
         $this->constraints[] = new GanttConstraint($aRow, $aType, $aColor, $aArrowSize, $aArrowType);
3110 3189
     }
3111 3190
 
3191
+    /**
3192
+     * @param double $yt
3193
+     * @param double $yb
3194
+     */
3112 3195
     function SetConstrainPos($xt,$yt,$xb,$yb) {
3113 3196
         $this->iConstrainPos = array($xt,$yt,$xb,$yb);
3114 3197
     }
@@ -3169,6 +3252,9 @@  discard block
 block discarded – undo
3169 3252
         $this->iDensity = $aDensity;
3170 3253
     }
3171 3254
 
3255
+    /**
3256
+     * @param string $aColor
3257
+     */
3172 3258
     function SetFillColor($aColor) {
3173 3259
         $this->iFillColor = $aColor;
3174 3260
     }
@@ -3211,6 +3297,10 @@  discard block
 block discarded – undo
3211 3297
         $this->iStart = $aStart;
3212 3298
     }
3213 3299
 
3300
+    /**
3301
+     * @param RotImage $aImg
3302
+     * @param GanttScale $aScale
3303
+     */
3214 3304
     function Stroke($aImg,$aScale) {
3215 3305
 
3216 3306
         if( ! $this->iShow ) return;
@@ -3328,6 +3418,9 @@  discard block
 block discarded – undo
3328 3418
         $this->iFrameColor = $aColor;
3329 3419
     }
3330 3420
 
3421
+    /**
3422
+     * @param string $aColor
3423
+     */
3331 3424
     function SetFillColor($aColor) {
3332 3425
         $this->iFillColor = $aColor;
3333 3426
     }
@@ -3718,6 +3811,10 @@  discard block
 block discarded – undo
3718 3811
     private $iDirection=ARROW_DOWN,$iType=ARROWT_SOLID,$iSize=ARROW_S2;
3719 3812
     private $iColor='black';
3720 3813
 
3814
+    /**
3815
+     * @param integer $x
3816
+     * @param integer $aDirection
3817
+     */
3721 3818
     function __construct($x,$y,$aDirection,$aType=ARROWT_SOLID,$aSize=ARROW_S2) {
3722 3819
         $this->iDirection = $aDirection;
3723 3820
         $this->iType = $aType;
@@ -3726,6 +3823,9 @@  discard block
 block discarded – undo
3726 3823
         $this->iy = $y;
3727 3824
     }
3728 3825
 
3826
+    /**
3827
+     * @param string $aColor
3828
+     */
3729 3829
     function SetColor($aColor) {
3730 3830
         $this->iColor = $aColor;
3731 3831
     }
@@ -3803,6 +3903,9 @@  discard block
 block discarded – undo
3803 3903
         $this->iy2 = $y2;
3804 3904
     }
3805 3905
 
3906
+    /**
3907
+     * @param integer $aPath
3908
+     */
3806 3909
     function SetPath($aPath) {
3807 3910
         $this->iPathType = $aPath;
3808 3911
     }
@@ -3820,6 +3923,9 @@  discard block
 block discarded – undo
3820 3923
         $this->iWeight = $aWeight;
3821 3924
     }
3822 3925
 
3926
+    /**
3927
+     * @param RotImage $aImg
3928
+     */
3823 3929
     function Stroke($aImg) {
3824 3930
         // The way the path for the arrow is constructed is partly based
3825 3931
         // on some heuristics. This is not an exact science but draws the
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_gradient.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
         $this->img = $img;
37 37
     }
38 38
 
39
+    /**
40
+     * @param integer $aNum
41
+     */
39 42
     function SetNumColors($aNum) {
40 43
         $this->numcolors=$aNum;
41 44
     }
@@ -331,6 +334,11 @@  discard block
 block discarded – undo
331 334
     // Please note that this is NOT a generic gradient polygon fill
332 335
     // routine. It assumes that the bottom is flat (like a drawing
333 336
     // of a mountain)
337
+
338
+    /**
339
+     * @param string $from_color
340
+     * @param string $to_color
341
+     */
334 342
     function FilledFlatPolygon($pts,$from_color,$to_color) {
335 343
         if( count($pts) == 0 ) return;
336 344
 
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_iconplot.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -130,6 +130,10 @@
 block discarded – undo
130 130
         return $this->_Stroke($dummy,null,null,true);
131 131
     }
132 132
 
133
+    /**
134
+     * @param double $x
135
+     * @param double $y
136
+     */
133 137
     function _Stroke($aImg,$x=null,$y=null,$aReturnWidthHeight=false) {
134 138
         if( $this->iFile != '' && $this->iCountryFlag != '' ) {
135 139
             JpGraphError::RaiseL(8003);//('It is not possible to specify both an image file and a country flag for the same icon.');
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_imgtrans.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -203,6 +203,10 @@
 block discarded – undo
203 203
     // * $aBorder, if set to anything besides false this will draw a
204 204
     //   a border of the speciied color around the image
205 205
     // --------------------------------------------------------------------
206
+
207
+    /**
208
+     * @param integer $aDir
209
+     */
206 210
     function Skew3D($aHorizon=120,$aSkewDist=150,$aDir=SKEW3D_DOWN,$aHiQuality=false,$aMinSize=true,$aFillColor='#FFFFFF',$aBorder=false) {
207 211
         return $this->_Skew3D($this->gdImg,$aHorizon,$aSkewDist,$aDir,$aHiQuality,
208 212
         $aMinSize,$aFillColor,$aBorder);
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_legend.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -170,6 +170,9 @@
 block discarded – undo
170 170
         $this->bkg_gradto = $aTo;
171 171
     }
172 172
 
173
+    /**
174
+     * @param RotImage $aImg
175
+     */
173 176
     function Stroke($aImg) {
174 177
         // Constant
175 178
         $fillBoxFrameWeight=1;
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_log.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
21 21
     // CONSTRUCTOR
22 22
 
23 23
     // Log scale is specified using the log of min and max
24
+
25
+    /**
26
+     * @param integer $min
27
+     */
24 28
     function __construct($min,$max,$type="y") {
25 29
         parent::__construct($min,$max,$type);
26 30
         $this->ticks = new LogTicks();
@@ -94,6 +98,12 @@  discard block
 block discarded – undo
94 98
     // Note that for log autoscale the "maxstep" the fourth argument
95 99
     // isn't used. This is just included to give the method the same
96 100
     // signature as the linear counterpart.
101
+
102
+    /**
103
+     * @param RotImage $img
104
+     * @param integer $min
105
+     * @param integer $maxsteps
106
+     */
97 107
     function AutoScale($img,$min,$max,$maxsteps,$majend=true) {
98 108
         if( $min==0 ) $min=1;
99 109
 
@@ -143,6 +153,9 @@  discard block
 block discarded – undo
143 153
         return true;
144 154
     }
145 155
 
156
+    /**
157
+     * @param integer $aType
158
+     */
146 159
     function SetLabelLogType($aType) {
147 160
         $this->label_logtype = $aType;
148 161
     }
Please login to merge, or discard this patch.
include/jpgraph/jpgraph_mgraph.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -168,6 +168,10 @@  discard block
 block discarded – undo
168 168
         $this->_gdImgHandle($aGraph->Stroke( _IMG_HANDLER),$x,$y,$fx=0,$fy=0,$w,$h);
169 169
     }
170 170
 
171
+    /**
172
+     * @param integer $x
173
+     * @param integer $y
174
+     */
171 175
     function _gdImgHandle($agdCanvas,$x,$y,$fx=0,$fy=0,$w=0,$h=0,$mix=100) {
172 176
         if( $w == 0 ) {
173 177
             $w = @imagesx($agdCanvas);
@@ -208,6 +212,9 @@  discard block
 block discarded – undo
208 212
         $this->footer->iRightMargin += $aShadowWidth;
209 213
     }
210 214
 
215
+    /**
216
+     * @param Image $image
217
+     */
211 218
     function StrokeTitle($image,$w,$h) {
212 219
         // Stroke title
213 220
         if( $this->title->t !== '' ) {
Please login to merge, or discard this patch.