12.7. The OpenCReport\QueryResult class #

12.7.1. Get number of columns for a query result
12.7.2. Get the nth column name for a query result
12.7.3. Get the nth column result for a query result

class OpenCReport\QueryResult {
    public final columns(): long;

    public final column_name(long $index): ?string;

    public final column_result(long $index):
                     ?OpenCReport\Result;
}

12.7.1. Get number of columns for a query result #

This method returns the number of columns for the query result.

public final
OpenCReport\QueryResult::columns(): long;

12.7.2. Get the nth column name for a query result #

This method returns the column name for the query result at $index. It returns NULL for invalid indices.

public final
OpenCReport\QueryResult::column_name(long $index):
                     ?string;

12.7.3. Get the nth column result for a query result #

This method returns the column result for the query result at $index. It returns NULL for invalid indices.

public final
OpenCReport\QueryResult::column_result(long $index):
                     ?OpenCReport\Result;