diff --git a/SG_iCal.php b/SG_iCal.php index 6cd22ff..f00538a 100755 --- a/SG_iCal.php +++ b/SG_iCal.php @@ -1,6 +1,6 @@ 'monday', 'TU'=>'tuesday', 'WE'=>'wednesday', 'TH'=>'thursday', 'FR'=>'friday', 'SA'=>'saturday', 'SU'=>'sunday'); - private $knownRules = array('month', 'weekno', 'day', 'monthday', 'yearday', 'hour', 'minute'); - private $simpleMode = true; + protected $weekdays = array('MO'=>'monday', 'TU'=>'tuesday', 'WE'=>'wednesday', 'TH'=>'thursday', 'FR'=>'friday', 'SA'=>'saturday', 'SU'=>'sunday'); + protected $knownRules = array('month', 'weekno', 'day', 'monthday', 'yearday', 'hour', 'minute'); + protected $simpleMode = true; - private $rules = array('freq'=>'yearly', 'interval'=>1); - private $start = 0; - private $freq = ''; + protected $rules = array('freq'=>'yearly', 'interval'=>1); + protected $start = 0; + protected $freq = ''; /** * Constructs a new Freqency-rule diff --git a/helpers/SG_iCal_Line.php b/helpers/SG_iCal_Line.php index 2a734dc..10aaa1b 100755 --- a/helpers/SG_iCal_Line.php +++ b/helpers/SG_iCal_Line.php @@ -15,11 +15,11 @@ * @license http://creativecommons.org/licenses/by-sa/2.5/dk/deed.en_GB CC-BY-SA-DK */ class SG_iCal_Line implements ArrayAccess, Countable, IteratorAggregate { - private $ident; - private $data; - private $params = array(); + protected $ident; + protected $data; + protected $params = array(); - private $replacements = array('from'=>array('\\,', '\\n', '\\;', '\\:', '\\"'), 'to'=>array(',', "\n", ';', ':', '"')); + protected $replacements = array('from'=>array('\\,', '\\n', '\\;', '\\:', '\\"'), 'to'=>array(',', "\n", ';', ':', '"')); /** * Constructs a new line.