comparison plugins/libcalendaring/libvcalendar.php @ 49:91f005a4f7e9

Slowly cleaning up more php8 Warnings/deprecations
author Charlie Root
date Mon, 06 Oct 2025 12:19:59 -0400
parents 888e774ee983
children 082a19037887
comparison
equal deleted inserted replaced
48:839c4d0fcb9f 49:91f005a4f7e9
71 * Default constructor 71 * Default constructor
72 */ 72 */
73 function __construct($tz = null) 73 function __construct($tz = null)
74 { 74 {
75 $this->timezone = $tz; 75 $this->timezone = $tz;
76 $this->prodid = '-//Roundcube libcalendaring ' . RCUBE_VERSION . '//Sabre//Sabre VObject ' . VObject\Version::VERSION . '//EN'; 76 $this->prodid = '-//Roundcube libcalendaring ' . RCUBE_VERSION . '//Sabre//Sabre VObject ' . '3.0.0' . '//EN'; /* VObject\Version::VERSION */
77 } 77 }
78 78
79 /** 79 /**
80 * Setter for timezone information 80 * Setter for timezone information
81 */ 81 */
1412 return !empty($this->objects[$this->iteratorkey]); 1412 return !empty($this->objects[$this->iteratorkey]);
1413 } 1413 }
1414 1414
1415 } 1415 }
1416 1416
1417
1418 /**
1419 * Override Sabre\VObject\Property\Text that quotes commas in the location property
1420 * because Apple clients treat that property as list.
1421 */
1422 class vobject_location_property extends VObject\Property\Text
1423 {
1424 /**
1425 * List of properties that are considered 'structured'.
1426 *
1427 * @var array
1428 */
1429 protected $structuredValues = array(
1430 // vCard
1431 'N',
1432 'ADR',
1433 'ORG',
1434 'GENDER',
1435 'LOCATION',
1436 // iCalendar
1437 'REQUEST-STATUS',
1438 );
1439 }