diff options
author | Andrew <browner12@gmail.com> | 2014-02-08 08:24:00 +0100 |
---|---|---|
committer | Andrew <browner12@gmail.com> | 2014-02-08 08:24:00 +0100 |
commit | e0333dbd16ad1b173064f6d113aa50105f4726e4 (patch) | |
tree | 9cd7985eb07819c80328b8e4145816b9b797237f /system/libraries/Migration.php | |
parent | 93326a5b1bbaade4d416ad17a768cab27337ec5b (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/libraries/Migration.php')
0 files changed, 0 insertions, 0 deletions