protected function _setFromDBResult($object)
	{
		// First generate the headings from the table column names
		if ($this->autoHeading === true && empty($this->heading))
		{
			$this->heading = $this->_prepArgs($object->getFieldNames());
		}

		foreach ($object->getResultArray() as $row)
		{
			$this->rows[] = $this->_prepArgs($row);
		}
	}
protected function _setFromDBResult($object)
	{
		// First generate the headings from the table column names
		if ($this->autoHeading === true && empty($this->heading))
		{
			$this->heading = $this->_prepArgs($object->getFieldNames());
		}

		foreach ($object->getResultArray() as $row)
		{
			$this->rows[] = $this->_prepArgs($row);
		}
	}
protected function _setFromDBResult ( $ object ) { // First generate the headings from the table column names if ( $ this -> autoHeading === true && empty ( $ this -> heading ) ) { $ this -> heading = $ this -> _prepArgs ( $ object -> getFieldNames ( ) ) ; } foreach ( $ object -> getResultArray ( ) as $ row ) { $ this -> rows [ ] = $ this -> _prepArgs ( $ row ) ; } }
Set table data from a database result object

@param  BaseResult $object Database result object
@return void
Set table data from a database result object