示例#1
0
    public function query($asarray)
    {
        $sql = $this->getSql();

        if ($asarray)
        {
            $dbc        = new DatabaseConnection();
            $cluster    = $dbc->query($sql);
        }
        else
        {
            // Handle cluster creation
            $cluster = new Cluster($this->_from['table']);
            $cluster->populate($this->_from['table'], $sql);
        }

        return $cluster;
    }