src/Query/ModelTrait.php
public static function queryCursor(iCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null)
    {
        // Get the query statement
        try {
            $strQuery = static::buildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses,
                $mixParameterArray, false);
        } catch (Caller $objExc) {
            $objExc->incrementOffset();
            throw $objExc;
        }

        // Pull Expansions
        $objExpandAsArrayNode = $objQueryBuilder->ExpandAsArrayNode;
        if (!empty ($objExpandAsArrayNode)) {
            throw new Caller ("Cannot use QueryCursor with ExpandAsArray");
        }

        // Perform the query
        $objDbResult = $objQueryBuilder->Database->query($strQuery);

        // Get the alias array so we know how to instantiate a row from the result
        $objDbResult->ColumnAliasArray = $objQueryBuilder->ColumnAliasArray;
        return $objDbResult;
    }
public static function queryCursor(iCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null)
    {
        // Get the query statement
        try {
            $strQuery = static::buildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses,
                $mixParameterArray, false);
        } catch (Caller $objExc) {
            $objExc->incrementOffset();
            throw $objExc;
        }

        // Pull Expansions
        $objExpandAsArrayNode = $objQueryBuilder->ExpandAsArrayNode;
        if (!empty ($objExpandAsArrayNode)) {
            throw new Caller ("Cannot use QueryCursor with ExpandAsArray");
        }

        // Perform the query
        $objDbResult = $objQueryBuilder->Database->query($strQuery);

        // Get the alias array so we know how to instantiate a row from the result
        $objDbResult->ColumnAliasArray = $objQueryBuilder->ColumnAliasArray;
        return $objDbResult;
    }
public static function queryCursor ( iCondition $ objConditions , $ objOptionalClauses = null , $ mixParameterArray = null ) { // Get the query statement try { $ strQuery = static :: buildQueryStatement ( $ objQueryBuilder , $ objConditions , $ objOptionalClauses , $ mixParameterArray , false ) ; } catch ( Caller $ objExc ) { $ objExc -> incrementOffset ( ) ; throw $ objExc ; } // Pull Expansions $ objExpandAsArrayNode = $ objQueryBuilder -> ExpandAsArrayNode ; if ( ! empty ( $ objExpandAsArrayNode ) ) { throw new Caller ( "Cannot use QueryCursor with ExpandAsArray" ) ; } // Perform the query $ objDbResult = $ objQueryBuilder -> Database -> query ( $ strQuery ) ; // Get the alias array so we know how to instantiate a row from the result $ objDbResult -> ColumnAliasArray = $ objQueryBuilder -> ColumnAliasArray ; return $ objDbResult ; }
Static Qcubed query method to issue a query and get a cursor to progressively fetch its results.
Uses BuildQueryStatment to perform most of the work.

@param iCondition $objConditions any conditions on the query, itself
@param iClause[] $objOptionalClauses additional optional iClause objects for this query
@param mixed[] $mixParameterArray an array of name-value pairs to substitute in to the placeholders in the query, if needed
@return Database\ResultBase the cursor resource instance
@throws Exception
@throws Caller
Static Qcubed query method to issue a query and get a cursor to progressively fetch its results . Uses BuildQueryStatment to perform most of the work .