本文整理汇总了PHP中Axis::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Axis::__construct方法的具体用法?PHP Axis::__construct怎么用?PHP Axis::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Axis
的用法示例。
在下文中一共展示了Axis::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor calls Axis constructor with 1/5 length
*/
public function __construct($length, $max_val, $min_val, $min_unit, $fit, $units_before, $units_after, $decimal_digits, $label_callback)
{
if ($min_val < 0) {
throw new Exception('Negative value for double-ended axis');
}
parent::__construct($length / 2, $max_val, $min_val, $min_unit, $fit, $units_before, $units_after, $decimal_digits, $label_callback);
}
示例2: __construct
/**
* Constructor calls Axis constructor with 1/5 length
*/
public function __construct($length, $max_val, $min_val, $min_unit, $fit, $units_before, $units_after)
{
if ($min_val < 0) {
throw new Exception('Negative value for double-ended axis');
}
parent::__construct($length / 2, $max_val, $min_val, $min_unit, $fit, $units_before, $units_after);
}
示例3: __construct
public function __construct($length, $max_val, $min_val, $step, $units_before, $units_after)
{
parent::__construct($length, $max_val, $min_val, 1, false, $units_before, $units_after);
$this->orig_max_value = $max_val;
$this->orig_min_value = $min_val;
$this->step = $step;
}
示例4: __construct
public function __construct($length, $max_val, $min_val, $step, $units_before, $units_after, $decimal_digits, $label_callback)
{
parent::__construct($length, $max_val, $min_val, 1, false, $units_before, $units_after, $decimal_digits, $label_callback);
$this->orig_max_value = $max_val;
$this->orig_min_value = $min_val;
$this->step = $step;
}
示例5: __construct
public function __construct($length, $max_val, $min_val, $step, $units_before, $units_after, $decimal_digits, $label_callback, $values)
{
// min_unit = 1, min_space = 1, fit = false
parent::__construct($length, $max_val, $min_val, 1, 1, false, $units_before, $units_after, $decimal_digits, $label_callback, $values);
$this->orig_max_value = $max_val;
$this->orig_min_value = $min_val;
$this->step = $step;
}
示例6: __construct
/**
* Stores all the information about the vertical axis. All options can be
* set either by passing an array with associative values for option =>
* value, or by chaining together the functions once an object has been
* created.
*
* @param array $config Configuration options for the VerticalAxis
* @return VerticalAxis
*/
public function __construct($config = array())
{
parent::__construct($this, $config);
}
示例7:
function __construct($img, $aScale)
{
parent::__construct($img, $aScale);
}
示例8: __construct
/**
* Stores all the information about the vertical axis. All options can be
* set either by passing an array with associative values for option =>
* value, or by chaining together the functions once an object has been
* created.
*
* @param array Configuration options for the vAxis
* @return \axis
*/
public function __construct($config = array())
{
return parent::__construct($config);
}
示例9: __construct
public function __construct($length, $max_val, $min_val, $step)
{
parent::__construct($length, $max_val, $min_val, 1);
$this->step = $step;
}
示例10: __construct
/**
* Stores all the information about the horizontal axis. All options can be
* set either by passing an array with associative values for option =>
* value, or by chaining together the functions once an object has been
* created.
*
* @param array $options
* @return \hAxis
*/
public function __construct($config = array())
{
$this->options = array_merge($this->options, array('allowContainerBoundaryTextCutoff', 'slantedText', 'slantedTextAngle', 'maxAlternation', 'maxTextLines', 'minTextSpacing', 'showTextEvery'));
parent::__construct($config);
}
示例11:
function __construct()
{
parent::__construct();
}