Fix creation of dynamic properties

Add some properties to classes to fix errors like:

Creation of dynamic property iSchedule::$body_cannon is deprecated in /usr/share/davical/inc/iSchedule.php on line 533
Creation of dynamic property FakeSession::$user_active is deprecated in /usr/share/davical/inc/iSchedule-POST.php on line 23
This commit is contained in:
Andrew Ruthven 2024-04-01 20:17:56 +13:00
parent 452b9fa2ef
commit 901d82a293
2 changed files with 36 additions and 2 deletions

View File

@ -17,6 +17,32 @@ include_once('freebusy-functions.php');
class FakeSession { class FakeSession {
private $user_active;
private $created;
private $modified;
private $password;
private $fullname;
private $email_ok;
private $date_format_type;
private $locale;
private $type_id;
private $type_label;
private $displayname;
private $default_privileges;
private $is_principal;
private $is_calendar;
private $is_addressbook;
private $collection_id;
private $resourcetypes;
private $privileges;
private $username;
public $user_no;
public $principal_id;
private $logged_in;
private $email;
private $dav_name;
private $principal;
function __construct($principal) { function __construct($principal) {
// Assign each field in the selected record to the object // Assign each field in the selected record to the object
foreach( $principal AS $k => $v ) { foreach( $principal AS $k => $v ) {

View File

@ -33,8 +33,16 @@ class iSchedule
private $failed = false; private $failed = false;
private $failOnError = true; private $failOnError = true;
private $subdomainsOK = true; private $subdomainsOK = true;
private $remote_public_key ; private $remote_public_key;
private $remote_ssl ; private $remote_ssl;
private $body_cannon;
private $header_cannon;
private $remote_server;
private $remote_selector;
private $signed_headers;
private $signed_length;
private $remote_user_rule;
private $required_headers = Array ( 'host', // draft 01 section 7.1 required headers private $required_headers = Array ( 'host', // draft 01 section 7.1 required headers
'originator', 'originator',
'recipient', 'recipient',