public function getFields()
	{
		static $cache = null;

		if ($cache === null)
		{
			// Lookup the fields for this table only once.
			$name = $this->_tbl;
			$fields = $this->_db->getTableColumns($name, false);

			if (empty($fields))
			{
				$e = new Exception(Lang::txt('JLIB_DATABASE_ERROR_COLUMNS_NOT_FOUND'));
				$this->setError($e);
				return false;
			}
			$cache = $fields;
		}

		return $cache;
	}
public function getFields()
	{
		static $cache = null;

		if ($cache === null)
		{
			// Lookup the fields for this table only once.
			$name = $this->_tbl;
			$fields = $this->_db->getTableColumns($name, false);

			if (empty($fields))
			{
				$e = new Exception(Lang::txt('JLIB_DATABASE_ERROR_COLUMNS_NOT_FOUND'));
				$this->setError($e);
				return false;
			}
			$cache = $fields;
		}

		return $cache;
	}
public function getFields ( ) { static $ cache = null ; if ( $ cache === null ) { // Lookup the fields for this table only once. $ name = $ this -> _tbl ; $ fields = $ this -> _db -> getTableColumns ( $ name , false ) ; if ( empty ( $ fields ) ) { $ e = new Exception ( Lang :: txt ( 'JLIB_DATABASE_ERROR_COLUMNS_NOT_FOUND' ) ) ; $ this -> setError ( $ e ) ; return false ; } $ cache = $ fields ; } return $ cache ; }
Get the columns from database table.

@return  mixed   An array of the field names, or false if an error occurs.
@since   2.1.12
Get the columns from database table .