Beispiel #1
0
 /**
  * Sets the parent. The parent chain should ultimately be a GraPHP object
  *
  * @see Image_Graph
  * @param Image_Graph_Common $parent The parent
  * @access private
  */
 function _setParent(&$parent)
 {
     parent::_setParent($parent);
     if (count($this->_plotareas) == 0) {
         $this->setPlotarea($parent);
     }
 }
Beispiel #2
0
 /**
  * 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);
     }
 }