Go to the source code of this file.
Data Structures | |
| class | PHPlot |
Enumerations | |
| enum | MINY |
| enum | MAXY |
| enum | TOTY |
Functions | |
| array_pad_array (&$arr, $size, $arr2=NULL) | |
| array_merge_php4 ($array1, $array2) | |
Variables | |
| if (!defined(__FUNCTION__)) define(__FUNCTION__ | |
| enum MAXY |
Definition at line 20 of file phplot.php.
| enum MINY |
Definition at line 19 of file phplot.php.
| enum TOTY |
Definition at line 21 of file phplot.php.
| array_merge_php4 | ( | $ | array1, | |
| $ | array2 | |||
| ) |
Fixes problem with array_merge() in PHP5.
Definition at line 4426 of file phplot.php.
Referenced by array_pad_array().
{
$return=array();
foreach(func_get_args() as $arg){
if(!is_array($arg)){
$arg=array($arg);
}
foreach($arg as $key=>$val){
if(!is_int($key)){
$return[$key]=$val;
}else{
$return[]=$val;
}
}
}
return $return;
}
Here is the caller graph for this function:| array_pad_array | ( | &$ | arr, | |
| $ | size, | |||
| $ | arr2 = NULL | |||
| ) |
Pads an array with another or with itself.
| arr | array Original array (reference) | |
| size | int Size of the resulting array. | |
| arr2 | array If specified, array to use for padding. If unspecified, pad with $arr. |
Definition at line 4412 of file phplot.php.
References $size, and array_merge_php4().
Referenced by PHPlot::PadArrays(), PHPlot::SetPointShapes(), and PHPlot::SetPointSizes().
{
if (! is_array($arr2)) {
$arr2 = $arr; // copy the original array
}
while (count($arr) < $size)
$arr = array_merge_php4($arr, $arr2); // append until done
}
Here is the call graph for this function:
Here is the caller graph for this function:| if(!defined(__FUNCTION__)) define(__FUNCTION__ |
Definition at line 16 of file phplot.php.
1.7.1