本文整理匯總了PHP中Axis::_setParent方法的典型用法代碼示例。如果您正苦於以下問題:PHP Axis::_setParent方法的具體用法?PHP Axis::_setParent怎麽用?PHP Axis::_setParent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Axis
的用法示例。
在下文中一共展示了Axis::_setParent方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
/**
* Sets the parent. The parent chain should ultimately be a GraPHP object
*
* @see Image_Graph_Common
* @param Image_Graph_Common $parent The parent
* @access private
*/
function _setParent(&$parent)
{
parent::_setParent($parent);
if ($this->_axisX !== null) {
$this->_axisX->_setParent($this);
}
if ($this->_axisY !== null) {
$this->_axisY->_setParent($this);
}
if ($this->_axisYSecondary !== null) {
$this->_axisYSecondary->_setParent($this);
}
}
示例2: elseif
/**
* Image_Graph_Plotarea [Constructor]
* @param Image_Graph_Axis $axisX The X axis (if false or omitted a std. axis is created)
* @param Image_Graph_Axis $axisY The Y axis (if false or omitted a std. axis is created)
*/
function &Image_Graph_Plotarea($axisX = false, $axisY = false)
{
parent::__construct();
$this->_padding = 10;
if (($axisX == null) and ($axisX !== false)) {
$this->_axisX = null;
}
elseif ($axisX !== false) {
$this->_axisX = & $axisX;
} else {
$this->_axisX = & new Image_Graph_Axis(IMAGE_GRAPH_AXIS_X);
}
if (is_object($this->_axisX)) {
$this->_axisX->_setParent($this);
}
if (($axisY == null) and ($axisY !== false)) {
$this->_axisY = null;
}
elseif ($axisY !== false) {
$this->_axisY = & $axisY;
} else {
$this->_axisY = & new Image_Graph_Axis(IMAGE_GRAPH_AXIS_Y);
}
if (is_object($this->_axisY)) {
$this->_axisY->_setParent($this);
$this->_axisY->_setMinimum(0);
}
}