(non-PHPdoc)

@see \Aztech\Skwal\Visitor\Query::visitSelect()
331268
public function visitSelect(\Aztech\Skwal\Query\Select $query)
    {
        $assembler = new \Aztech\Skwal\Visitor\Printer\Assembler\Select();
        
        $this->appendSelectList($assembler, $query);
        $this->appendFromClause($assembler, $query);
        $this->appendWhereClauseIfNecessary($assembler, $query);
        $this->appendGroupByList($assembler, $query);
        $this->appendOrderByList($assembler, $query);
        
        $this->queryStack->push($assembler->getAssembledStatement());
    }
8005
public function walkSelectStatement(SelectStatement $AST)
    {
        if ($this->platformSupportsRowNumber()) {
            return $this->walkSelectStatementWithRowNumber($AST);
        }

        return $this->walkSelectStatementWithoutRowNumber($AST);
    }
529626
public function select($pSelectStatement)
    {
        $returnValue = null;
        try {
            // Set the select.
            $stmt = $this->pdo->prepare($pSelectStatement);
            // Call the database routine
            $stmt->execute();
            // Fetch all rows into an array.
            $rows = $stmt->fetchAll(\PDO::FETCH_ASSOC);

            if ($this->isArray($rows)) {
                $returnValue = $rows;
            }

            $stmt->closeCursor();
        } catch (Exception $pError) {
            $message = \sprintf(
                'Select statement failed "%s" in %s on line %s',
                $pSelectStatement,
                $pError->getFile(),
                $pError->getLine()
            );

            throw new \Exception($message, 501, $pError);
        }

        return $returnValue;
    }
846593
final protected function createSelectQuery(Query $query)
    {
        $select = $this->getDatabase()->select('node', 'n')->fields('n', ['nid'])->addTag('node_access');

        if ($this->addGroupby()) {
            $select->groupBy('n.nid');
        }

        return $select;
    }
676509
private function select()
    {
        do {
            $mrc = curl_multi_exec($this->multi_handle, $active);
        } while ($mrc == CURLM_CALL_MULTI_PERFORM);

        while ($active && $mrc == CURLM_OK) {
            if (curl_multi_select($this->multi_handle) !== -1) {
                do {
                    $mrc = curl_multi_exec($this->multi_handle, $active);
                } while ($mrc == CURLM_CALL_MULTI_PERFORM);
            } else {
                return;
            }
        }

        while ($info = curl_multi_info_read($this->multi_handle)) {
            $ch = $info['handle'];
            $fd = (int)$ch;

            curl_multi_remove_handle($this->multi_handle, $ch);

            if (!isset($this->requests[$fd])) {
                return;
            }

            unset($this->requests[$fd]);
        }
    }
613341
public function callProcedure($procedureName = '', $bindParams = [], $isSelect = true)
    {
        $this->bindParams = $bindParams;
        $this->currentQueryIsMaster = true;
        $stmt = $this->prepare("exec {$procedureName}", $this->wlink);
        $this->execute($stmt);
        if ($isSelect) {
            return $stmt->fetchAll(\PDO::FETCH_ASSOC);
        } else {
            return $stmt->rowCount();
        }
    }
381366
public function select(Query $query)
    {
        $options = $query->getOptions();

        $where = $this->parseWhere($query, $options['where']);
        $query = new MongoQuery($where, $options);

        $this->log('find', $where, $options);

        return $query;
    }
967628
function where($expr)
    {
        $select = $this->from();
        foreach (func_get_args() as $expr) {
            $select->where($expr);
        }
        return $select;
    }
985904
public function select($select=null)
    {
        $select = LambdaUtils::toSelectCallable($select);

        $result = array();
        foreach($this as $key => $record)
        {
            $result[] = call_user_func($select, $record, $key);
        }
        return new ArrayList($result);
    }
1132718
public function hasVisitor($visitor_id)
    {
        if ($this->visitor !== null) {
            return true;
        }
        /**
         * @var Visitor $model
         */
        $model = Yii::$container->get($this->modelMap['Visitor']['class']);
        $this->visitor = $model->find()
            ->where(['id' => $visitor_id])
            ->one();
        return $this->visitor !== null;
    }
359663
public function accept(VisitorInterface $visitor)
    {
        $hierarchy = array_merge([get_class($this)], array_values(class_parents($this)));

        $visitorMethods = array_map(
            function ($className) {
                if (strrpos($className, "\\") !== false) {
                    $className = substr($className, strrpos($className, "\\") + 1);
                }
                return "visit" . $className;
            },
            $hierarchy
        );

        foreach ($visitorMethods as $visitorMethod) {
            if (method_exists($visitor, $visitorMethod) === true) {
                return $visitor->$visitorMethod($this);
            }
        }

        if (method_exists($visitor, "visit") === true) {
            return $visitor->visit($this);
        }
        
        return null;
    }
789107
public function select($fields = '*')
    {
        $query = new Query\SelectQuery();

        if ($this->pdo) {
            $query->setPDO($this->pdo);
        }

        return $query->select($fields);
    }
1356214
public static function select( $table, $fields = array(), $handler = null ) 
	{
		return Query::select( $table, $fields, $handler );
	}
1153301
public function getSelect()
    {
        $ret = parent::getSelect();
        $categoryDirectory = $this->getItemDirectory()->getComponent();

        $refData = Kwc_Directories_Category_Detail_List_Component::getTableReferenceData(
            Kwc_Abstract::getSetting(get_class($categoryDirectory), 'categoryToItemModelName'),
            'Category'
        );

        $ret->join($refData['tableName'],
            "{$refData['refTableName']}.{$refData['refItemColumn']} = "
                ."{$refData['tableName']}.{$refData['itemColumn']}", array()
        );

        $refDataItem = Kwc_Directories_Category_Detail_List_Component::getTableReferenceData(
            Kwc_Abstract::getSetting(get_class($categoryDirectory), 'categoryToItemModelName'),
            'Item'
        );

        $ret->where(
            $refDataItem['tableName'].'.'.$refDataItem['itemColumn'].' = ?',
            $this->_getItemDetail()->row->id
        );

        return $ret;
    }
338856
protected function _where(Kwf_Db_Table_Select $select, $where)
    {
        $where = (array) $where;

        foreach ($where as $key => $val) {
            // is $key an int?
            if (is_int($key)) {
                // $val is the full condition
                $select->where($val);
            } else {
                // $key is the condition with placeholder,
                // and $val is quoted into the condition
                $select->where($key, $val);
            }
        }

        return $select;
    }
1355509
public function selectCount($as = 'count', $what = null)
    {
        if (!$what) {
            $what = '`' . $this->getTable() . '`.id';
        }
        $this->getQuery()->select([$as => 'COUNT(' . $what . ')']);

        return $this;
    }
922865
public function paginate($select, $resultSet = null)
    {
        $resultSet = $resultSet ?: $this->getResultSet();
        $adapter = new DbSelect($select, $this->getAdapter(), $resultSet);
        $paginator = new Paginator($adapter);

        $options = $this->getPaginatorOptions();

        if (isset($options['limit'])) {
            $paginator->setItemCountPerPage($options['limit']);
        }

        if (isset($options['page'])) {
            $paginator->setCurrentPageNumber($options['page']);
        }

        $paginator->setPageRange(5);

        return $paginator;
    }