EllisLab/CodeIgniter — pull request #2864 by browner12 (2014-02-08 07:32:04+00:00)
Title: 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

If this pull is accepted, I can make the necessary updates to the documentation.