|
dolibarr
x.y.z
|
Function to manage calendar files (vcal/ical/...) More...
Go to the source code of this file.
Functions | |
| build_calfile ($format, $title, $desc, $events_array, $outputfile) | |
| Build a file from an array of events All input params and data must be encoded in $conf->charset_output. More... | |
| build_rssfile ($format, $title, $desc, $events_array, $outputfile, $filter='', $url='', $langcode='') | |
| Build a file from an array of events. More... | |
| format_cal ($format, $string) | |
| Encode for cal export. More... | |
| calEncode ($line) | |
| Cut string after 75 chars. More... | |
| quotedPrintEncode ($str, $forcal=0) | |
| Encode into vcal format. More... | |
| quotedPrintDecode ($str) | |
| Decode vcal format. More... | |
Function to manage calendar files (vcal/ical/...)
Definition in file xcal.lib.php.
| build_calfile | ( | $format, | |
| $title, | |||
| $desc, | |||
| $events_array, | |||
| $outputfile | |||
| ) |
Build a file from an array of events All input params and data must be encoded in $conf->charset_output.
| string | $format | "vcal" or "ical" |
| string | $title | Title of export |
| string | $desc | Description of export |
| array | $events_array | Array of events ("uid","startdate","duration","enddate","title","summary","category","email","url","desc","author") |
| string | $outputfile | Output file |
Definition at line 35 of file xcal.lib.php.
| build_rssfile | ( | $format, | |
| $title, | |||
| $desc, | |||
| $events_array, | |||
| $outputfile, | |||
$filter = '', |
|||
$url = '', |
|||
$langcode = '' |
|||
| ) |
Build a file from an array of events.
All input data must be encoded in $conf->charset_output
| string | $format | "rss" |
| string | $title | Title of export |
| string | $desc | Description of export |
| array | $events_array | Array of events ("uid","startdate","summary","url","desc","author","category","image") or Array of WebsitePage |
| string | $outputfile | Output file |
| string | $filter | (optional) Filter |
| string | $url | Url (If empty, forge URL for agenda RSS export) |
| string | $langcode | Language code to show in header |
Definition at line 311 of file xcal.lib.php.
| calEncode | ( | $line | ) |
Cut string after 75 chars.
Add CRLF+Space. line must be encoded in UTF-8
| string | $line | String to convert |
Definition at line 476 of file xcal.lib.php.
| format_cal | ( | $format, | |
| $string | |||
| ) |
Encode for cal export.
| string | $format | "vcal" or "ical" |
| string | $string | String to encode |
Definition at line 446 of file xcal.lib.php.
| quotedPrintDecode | ( | $str | ) |
Decode vcal format.
| string | $str | String to convert |
Definition at line 577 of file xcal.lib.php.
| quotedPrintEncode | ( | $str, | |
$forcal = 0 |
|||
| ) |
Encode into vcal format.
| string | $str | String to convert |
| int | $forcal | (optional) 1 = For cal |
Definition at line 531 of file xcal.lib.php.