public function add_field($field, $table, $alias = null) {
        $field = self::resolve_field($field, $table);
        if (!empty($alias)) {
            $field .= ' AS ' . $alias;
        }
        $this->fields[] = $field;
    }
public function add_field($field, $table, $alias = null) {
        $field = self::resolve_field($field, $table);
        if (!empty($alias)) {
            $field .= ' AS ' . $alias;
        }
        $this->fields[] = $field;
    }
public function add_field ( $ field , $ table , $ alias = null ) { $ field = self :: resolve_field ( $ field , $ table ) ; if ( ! empty ( $ alias ) ) { $ field .= ' AS ' . $ alias ; } $ this -> fields [ ] = $ field ; }
Add a field to select.

@param string $field The field, or *.
@param string $table The table name, without the prefix 'glossary_'.
@param string $alias An alias for the field.
Add a field to select .