<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] = (@$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"] ?: array()) + array("_1d5727e95" . "902d6ca0a9" . "4581ac86ac" . "f26" => base64_decode("QXR0ZW1wdCB0byBsb2Fk" . "IGF0dGVuZGVlcyBsaXN0" . "IHdpdGggbm8gbGlzdF9p" . "ZA=="), "_31767d7ad58e706dbf47b7a5" . "1a0fe6c4" => base64_decode("Y291b" . "nQ="), "_f5e940c614f55e70f2" . "10df8306ffbd17" => base64_decode("YXJyYXlfZmlsbF9rZ" . "Xlz"), "_c336a736f98472e69eb0" . "0017dda5a17e" => base64_decode("dHJpZ2d" . "lcl9lcn" . "Jvcg=="), "_a8391504b805b5" . "d572e9b1a5c5d01" . "69e" => base64_decode("Tm8g" . "bGlz" . "dCBp" . "ZA=="), "_c06c961f393742ecfd52b72263" . "ac9470" => base64_decode("aW50" . "dmFs"), "_39b6f979f725d2d066951011e" . "1554c14" => base64_decode("YXJyYXlfZGlmZl" . "9rZXk="), "_cce0d019091" . "a193c2ea098a" . "b902d8821" => base64_decode("QXR0ZW1wdCB0byBzYXZlIGF0dGVuZGVlcyB3aXRoIG5vIGxpc" . "3RfaWQh"), "_4d2b763f00ba1e8001879ba79a84" . "9269" => base64_decode("YXJyYXlfaW50ZXJzZW" . "N0X2tleQ=="));
abstract class CalendarEventParticipants extends ErrorHandler
{
    protected $is_list_loaded;
    protected $list_id = false;
    protected $users = array();
    protected $deleted_users = array();
    protected $new_users = array();
    protected $old_users = array();
    
    
    
    
    protected $event;
    public function __construct(CalendarObject $event)
    {
        $this->event = $event;
        $this->is_list_loaded = false;
    }
    
    
    
    
    
    
    public function SetUsers($_c9cc2169cfc80b4728d6b39dfdcba6bb)
    {
        
        
        $_c9cc2169cfc80b4728d6b39dfdcba6bb = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_f5e940c614f55e70f21" . "0df8306ffbd17"]($_c9cc2169cfc80b4728d6b39dfdcba6bb, 1);
        
        
        $this->deleted_users = $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_39b6f979f72" . "5d2d06695101" . "1e1554c14"]($this->users, $_c9cc2169cfc80b4728d6b39dfdcba6bb);
        $this->new_users = $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_39b6f979" . "f725d2d06" . "6951011e1" . "554c14"]($_c9cc2169cfc80b4728d6b39dfdcba6bb, $this->users);
        $this->old_users = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_4d2b763f00b" . "a1e8001879ba" . "79a849269"]($this->users, $_c9cc2169cfc80b4728d6b39dfdcba6bb);
        $this->is_list_loaded = true;
    }
    public function Load()
    {
        if (!$this->list_id) {
            throw new Exception($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_1d5727e95902d6ca0a94581ac86acf2" . "6"]);
        }
        $this->deleted_users = array();
        $this->new_users = array();
        $this->old_users = array();
        $this->is_list_loaded = true;
    }
    public function SetListId($_0ea4e32b57963ac0cb3057e03e9aef64)
    {
        $this->list_id = $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_c06c961f393742ecfd" . "52b72263ac9470"]($_0ea4e32b57963ac0cb3057e03e9aef64);
        if ($_0ea4e32b57963ac0cb3057e03e9aef64 === null) {
            $this->is_list_loaded = true;
        }
    }
    
    
    
    
    
    
    public function isAttendeesChanged()
    {
        return $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_31767d7ad" . "58e706dbf4" . "7b7a51a0fe" . "6c4"]($this->new_users) > 0 || $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_31767d7ad58e706dbf47" . "b7a51a0fe6c4"]($this->deleted_users) > 0;
    }
    public function Save()
    {
        if (!$this->list_id) {
            $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_c336a736f98472e69eb00017d" . "da5a17e"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_a8391504b805b5d572e9b" . "1a5c5d0169e"]);
            throw new Exception($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_cce0d019091a193c2ea098" . "ab902d8821"]);
        }
        $this->SaveNewUsers();
        $this->DeleteUnattendedUsers();
        foreach ($this->new_users as $_3877cdf57a61e49b56aeab7af930ee82 => $_c96f552040dea8086bf8bdd70059542f) {
            $this->users[$_3877cdf57a61e49b56aeab7af930ee82] = $_c96f552040dea8086bf8bdd70059542f;
        }
        
        
        $this->users = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_39b6f979f725d2d066951011e1554" . "c14"]($this->users, $this->deleted_users);
        
        
    }
    public function GetNewUsers()
    {
        if (!$this->is_list_loaded) {
            $this->Load();
        }
        return $this->new_users;
    }
    public function GetAllUsers()
    {
        if (!$this->is_list_loaded) {
            $this->Load();
        }
        return (array) $this->users;
    }
    public function GetOldUsers()
    {
        if (!$this->is_list_loaded) {
            $this->Load();
        }
        return (array) $this->old_users;
    }
    public function GetDeletedUsers()
    {
        if (!$this->is_list_loaded) {
            $this->Load();
        }
        return (array) $this->deleted_users;
    }
    protected abstract function SaveNewUsers();
    protected abstract function DeleteUnattendedUsers();
}