summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrew <browner12@gmail.com>2014-02-08 08:24:00 +0100
committerAndrew <browner12@gmail.com>2014-02-08 08:24:00 +0100
commite0333dbd16ad1b173064f6d113aa50105f4726e4 (patch)
tree9cd7985eb07819c80328b8e4145816b9b797237f /system/helpers
parent93326a5b1bbaade4d416ad17a768cab27337ec5b (diff)
simplify calendar library
it seemed quite strange that we ask users to pass in a template string the we parse with REGEX, to extract key/value pairs, when we can simply ask users for an array. the class still contains default variables for each part of the template. Users can simply pass in an array (instead of a string) when they initialize, $config['template'], which overwrites default values. this cuts down a little on file size by removing parse_template() function. I think arrays are much more straightforward and easy to read than 'encoded' strings. don't have to keep a running list of all template keys like in previous parse_template() function. gets rid of $this->temp[] property and changes it to $this->template[] which is more descriptive when generating output
Diffstat (limited to 'system/helpers')
0 files changed, 0 insertions, 0 deletions