odata/services/IDataServiceQueryProvider Implementation/NorthWind/NorthWindQueryProvider.php
/**
     * Serialize the sql result array into Customer objects
     * 
     * @param array(array) $result result of the sql query
     * 
     * @return array(Object)
     */
Serialize the sql result array into Customer objects

@param array(array) $result result of the sql query


Serialize the sql result array into Customer objects @param array ( array ) $result result of the sql query
private function _serializeCustomers($result)
    {
        $customers = array();
        while ($record = sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)) {         
             $customers[] = $this->_serializeCustomer($record);
        }
        return $customers;
    }
private function _serializeCustomers ( $ result ) { $ customers = array ( ) ; while ( $ record = sqlsrv_fetch_array ( $ result , SQLSRV_FETCH_ASSOC ) ) { $ customers [ ] = $ this -> _serializeCustomer ( $ record ) ; } return $ customers ; }
Serialize the sql result array into Customer objects
Serialize the sql result array into Customer objects