/** * Add a line style to the array * * @param Image_Graph_Line $style The style to add */ function add(&$style, $id = false) { if (is_a($style, 'Image_Graph_Element')) { parent::add($style); } if ($id === false) { $this->_lineStyles[] =& $style; } else { $this->_lineStyles[$id] =& $style; } reset($this->_lineStyles); }