public function addElement($row, $name = null, $attrs = null) {
		if (is_array($row)) {
			$row = new TableRow($row, $attrs, $this->_headPart);
		}
		else if (! $row instanceof TableRow) {
			throw new Exception('Element must be an instance of the TableRow or an array');
		}
		
		return parent::addElement($row, $name);
	}
public function addElement($row, $name = null, $attrs = null) {
		if (is_array($row)) {
			$row = new TableRow($row, $attrs, $this->_headPart);
		}
		else if (! $row instanceof TableRow) {
			throw new Exception('Element must be an instance of the TableRow or an array');
		}
		
		return parent::addElement($row, $name);
	}
public function addElement ( $ row , $ name = null , $ attrs = null ) { if ( is_array ( $ row ) ) { $ row = new TableRow ( $ row , $ attrs , $ this -> _headPart ) ; } else if ( ! $ row instanceof TableRow ) { throw new Exception ( 'Element must be an instance of the TableRow or an array' ) ; } return parent :: addElement ( $ row , $ name ) ; }
Add a row to a table

@param  array | TableRow $element
@param  string           $name
@return Table
@throws Exception
Add a row to a table