phpDataMapper_Query::select PHP Method

select() public method

Called from mapper's select() function
public select ( mixed $fields = "*", string $source = null ) : string
$fields mixed (optional)
$source string Data source name
return string
    public function select($fields = "*", $source = null)
    {
        $this->fields = is_string($fields) ? explode(',', $fields) : $fields;
        if (null !== $source) {
            $this->from($source);
        }
        return $this;
    }