class OpenCReport\Expr { public final free(): void; public final get_expr_string(): string; public final print(): void; public final nodes(): long; public final resolve(): void; public final optimize(): void; public final eval(): ?OpenCReport\Result; public final get_result(): ?OpenCReport\Result; public final set_string( string $value): void; public final set_long( long $value): void; public final set_double( double $value): void; public final set_number( string $value): void; public final get_num_operands(): long; public final operand_get_result( long $opidx): ?OpenCReport\Result; public final cmp_results(): bool; public final init_results(long $result_type): void; public final get_string(): ?string; public final get_long(): long; public final get_double(): double; public final get_number(): ?string; public final set_nth_result_string( long $which, string $value): void; public final set_nth_result_long( long $which, long $value): void; public final set_nth_result_double( long $which, double $value): void; public final set_iterative_start_value( bool $value): void; public final set_delayed( bool $value): void; }
public final OpenCReport\Expr::get_expr_string(): string;
Used by unit tests to compare the expression tree before and after optimization.
public final OpenCReport\Expr::nodes(): long;
public final OpenCReport\Expr::get_result(): ?OpenCReport\Result;
Useful for user functions.
public final OpenCReport\Expr::set_string( string $value): void;
Useful for user functions.
public final OpenCReport\Expr::set_long( long $value): void;
Useful for user functions.
public final OpenCReport\Expr::set_double( double $value): void;
Useful for user functions. This allows using BC Math
public final OpenCReport\Expr::set_number_from_string( string $value): void;
Useful for user functions.
public final OpenCReport\Expr::get_num_operands(): long;
Useful for user functions.
public final OpenCReport\Expr::operand_get_result( long $opidx): ?OpenCReport\Result;
Used internally by the report executor and unit tests. Useful for implementing a custom report executor with breaks.
public final OpenCReport\Expr::cmp_results(): bool;
Used internally by the report executor and unit tests. Useful for implementing a custom report executor.
public final OpenCReport\Expr::init_results(long $result_type): void;
Used by unit tests.
public final OpenCReport\Expr::get_string(): ?string;
Used by unit tests.
public final OpenCReport\Expr::get_long(): long;
Used by unit tests.
public final OpenCReport\Expr::get_double(): double;
Used internally by unit tests.
public final OpenCReport\Expr::get_number(): ?string;
Used by unit tests.
public final OpenCReport\Expr::set_nth_result_string( long $which, string $value): void;
Used by unit tests.
public final OpenCReport\Expr::set_nth_result_long( long $which, long $value): void;
Used by unit tests.
public final OpenCReport\Expr::set_nth_result_double( long $which, double $value): void;
Used internally by the report executor and by unit tests.
public final OpenCReport\Expr::set_iterative_start_value( bool $value): void;
A delayed expression's final value is precalculated, and this value is used in the output in every row of the report.
public final OpenCReport\Expr::set_delayed( bool $value): void;