Public Member Functions | |
sum () | |
cube () | |
uncube () | |
renderForPDF ($sortable=false) | |
Static Public Member Functions | |
static | union_tables ($tables) |
static | join_tables ($tables) |
This Class is designed to allow for a queryable Budget. Functions like select, where, join and cube etc. can be used to create different types of budgets. NOTE: This class creates an immutable object(unless accessing the instance variables directly), which creates some performance overheads. It would be useful in the future to have a 'BudgetBuilder' which would be a mutable version of this class. TODO: It would be extremely useful to have an SQL like parser for Budgets. This could code which uses this class cleaner, as well as it might be able to execute the actions faster since it could do some query optimizations.