public function queryAll($column = null, $mode = null)
    {
        if (is_null($mode)) {
            $mode = $this->pdo->getAttribute(PDO::ATTR_DEFAULT_FETCH_MODE);
        }

        $result = array();
        $rows = $this->getStmt()->fetchAll($mode);

        if ($column == null) {
            $result = $rows;
        } else {
            foreach ($rows as $row) {
                if (isset($row[$column])) {
                    $result[] = $row[$column];
                } else {
                    return false;
                }
            }
        }

        if ($this->relationProcessor->hasQueue()) {
            return $this->relationProcessor->process($result);
        } else {
            return $result;
        }
    }
public function queryAll($column = null, $mode = null)
    {
        if (is_null($mode)) {
            $mode = $this->pdo->getAttribute(PDO::ATTR_DEFAULT_FETCH_MODE);
        }

        $result = array();
        $rows = $this->getStmt()->fetchAll($mode);

        if ($column == null) {
            $result = $rows;
        } else {
            foreach ($rows as $row) {
                if (isset($row[$column])) {
                    $result[] = $row[$column];
                } else {
                    return false;
                }
            }
        }

        if ($this->relationProcessor->hasQueue()) {
            return $this->relationProcessor->process($result);
        } else {
            return $result;
        }
    }
public function queryAll ( $ column = null , $ mode = null ) { if ( is_null ( $ mode ) ) { $ mode = $ this -> pdo -> getAttribute ( PDO :: ATTR_DEFAULT_FETCH_MODE ) ; } $ result = array ( ) ; $ rows = $ this -> getStmt ( ) -> fetchAll ( $ mode ) ; if ( $ column == null ) { $ result = $ rows ; } else { foreach ( $ rows as $ row ) { if ( isset ( $ row [ $ column ] ) ) { $ result [ ] = $ row [ $ column ] ; } else { return false ; } } } if ( $ this -> relationProcessor -> hasQueue ( ) ) { return $ this -> relationProcessor -> process ( $ result ) ; } else { return $ result ; } }
Queries for all result-set

@param string $column Optionally can be filtered by a column
@param integer $mode Fetch mode. Can be overridden when needed
@return mixed
Queries for all result - set