PdoDataSource::select PHP Метод

select() публичный Метод

Begin a select operation by returning a new, unrealized PdoDataSet
public select ( string $table = '' ) : PdoDataSet
$table string Optional parameter that sets the from clause of the select to a table.
Результат PdoDataSet
    function select($table = '')
    {
        if ($table != '') {
            $PdoDataSet = new PdoDataSet($this);
            return $PdoDataSet->from($table);
        } else {
            return new PdoDataSet($this);
        }
    }