public function tableHasField($table, $field)
	{
		$this->setQuery('SHOW FIELDS FROM ' . $table);
		$fields = $this->loadObjectList('Field');

		if (!is_array($fields))
		{
			return false;
		}

		return (in_array($field, array_keys($fields))) ? true : false;
	}
public function tableHasField($table, $field)
	{
		$this->setQuery('SHOW FIELDS FROM ' . $table);
		$fields = $this->loadObjectList('Field');

		if (!is_array($fields))
		{
			return false;
		}

		return (in_array($field, array_keys($fields))) ? true : false;
	}
public function tableHasField ( $ table , $ field ) { $ this -> setQuery ( 'SHOW FIELDS FROM ' . $ table ) ; $ fields = $ this -> loadObjectList ( 'Field' ) ; if ( ! is_array ( $ fields ) ) { return false ; } return ( in_array ( $ field , array_keys ( $ fields ) ) ) ? true : false ; }
Returns whether or not the given table has a given field

@param   string  $table  A table name
@param   string  $field  A field name
@return  bool
@since   2.0.0
Returns whether or not the given table has a given field