kopia lustrzana https://github.com/friendica/SG-iCalendar
i hate private $vars :p replaced by protected
rodzic
107781fe43
commit
67bf66c910
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
define('SG_ICALREADER_VERSION', '0.5');
|
||||
define('SG_ICALREADER_VERSION', '0.5.1.tpruvot');
|
||||
|
||||
/**
|
||||
* A simple iCal parser. Should take care of most stuff for ya
|
||||
|
@ -22,9 +22,9 @@ define('SG_ICALREADER_VERSION', '0.5');
|
|||
* @license http://creativecommons.org/licenses/by-sa/2.5/dk/deed.en_GB CC-BY-SA-DK
|
||||
*/
|
||||
class SG_iCal {
|
||||
private $information;
|
||||
private $events;
|
||||
private $timezones;
|
||||
protected $information;
|
||||
protected $events;
|
||||
protected $timezones;
|
||||
|
||||
/**
|
||||
* Constructs a new iCalReader. You can supply the url now, or later using setUrl
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* @license http://creativecommons.org/licenses/by-sa/2.5/dk/deed.en_GB CC-BY-SA-DK
|
||||
*/
|
||||
class SG_iCal_VCalendar implements IteratorAggregate {
|
||||
private $data;
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* Creates a new SG_iCal_VCalendar.
|
||||
|
|
|
@ -15,15 +15,15 @@
|
|||
*/
|
||||
class SG_iCal_VEvent {
|
||||
const DEFAULT_CONFIRMED = true;
|
||||
private $uid;
|
||||
private $start;
|
||||
private $end;
|
||||
private $lastend;
|
||||
private $recurrence;
|
||||
private $summary;
|
||||
private $description;
|
||||
private $location;
|
||||
private $data;
|
||||
protected $uid;
|
||||
protected $start;
|
||||
protected $end;
|
||||
protected $lastend;
|
||||
protected $recurrence;
|
||||
protected $summary;
|
||||
protected $description;
|
||||
protected $location;
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* Constructs a new SG_iCal_VEvent. Needs the SG_iCalReader
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* @license http://creativecommons.org/licenses/by-sa/2.5/dk/deed.en_GB CC-BY-SA-DK
|
||||
*/
|
||||
class SG_iCal_VTimeZone {
|
||||
private $tzid;
|
||||
private $daylight;
|
||||
private $standard;
|
||||
private $cache = array();
|
||||
protected $tzid;
|
||||
protected $daylight;
|
||||
protected $standard;
|
||||
protected $cache = array();
|
||||
|
||||
/**
|
||||
* Constructs a new SG_iCal_VTimeZone
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
class SG_iCal_Duration {
|
||||
private $dur;
|
||||
protected $dur;
|
||||
|
||||
/**
|
||||
* Constructs a new SG_iCal_Duration from a duration-rule.
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
* @license http://creativecommons.org/licenses/by-sa/2.5/dk/deed.en_GB CC-BY-SA-DK
|
||||
*/
|
||||
class SG_iCal_Freq {
|
||||
private $weekdays = array('MO'=>'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
|
||||
|
|
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue