mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
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:
parent
452b9fa2ef
commit
901d82a293
@ -17,6 +17,32 @@ include_once('freebusy-functions.php');
|
||||
|
||||
|
||||
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) {
|
||||
// Assign each field in the selected record to the object
|
||||
foreach( $principal AS $k => $v ) {
|
||||
|
||||
@ -33,8 +33,16 @@ class iSchedule
|
||||
private $failed = false;
|
||||
private $failOnError = true;
|
||||
private $subdomainsOK = true;
|
||||
private $remote_public_key ;
|
||||
private $remote_ssl ;
|
||||
private $remote_public_key;
|
||||
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
|
||||
'originator',
|
||||
'recipient',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user