|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace PhpEws\DataType; |
|
4
|
|
|
|
|
5
|
|
|
use PhpEws\DataType; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* Represents the type of free/busy information returned in the response. |
|
9
|
|
|
* |
|
10
|
|
|
* @package php-ews\Enumerations |
|
11
|
|
|
*/ |
|
12
|
|
|
class FreeBusyViewType extends DataType |
|
13
|
|
|
{ |
|
14
|
|
|
/** |
|
15
|
|
|
* Represents the legacy status information: free, busy, tentative, and OOF; |
|
16
|
|
|
* the start/end times of the appointments; and various properties of the |
|
17
|
|
|
* appointment such as subject, location, and importance. |
|
18
|
|
|
* |
|
19
|
|
|
* This requested view will return the maximum amount of information for |
|
20
|
|
|
* which the requesting user is privileged. If merged free/busy information |
|
21
|
|
|
* only is available, as with requesting information for users in a |
|
22
|
|
|
* Microsoft Exchange Server 2003 forest, MergedOnly will be returned. |
|
23
|
|
|
* Otherwise, FreeBusy or Detailed will be returned. |
|
24
|
|
|
* |
|
25
|
|
|
* If Detailed is specified for a distribution list, the free/busy |
|
26
|
|
|
* information for the members of the list is merged, and MergedOnly is |
|
27
|
|
|
* returned. |
|
28
|
|
|
* |
|
29
|
|
|
* @since Exchange 2007 |
|
30
|
|
|
* |
|
31
|
|
|
* @var string |
|
32
|
|
|
*/ |
|
33
|
|
|
const DETAILED = 'Detailed'; |
|
34
|
|
|
/** |
|
35
|
|
|
* Represents all the properties in Detailed with a stream of merged |
|
36
|
|
|
* free/busy availability information. |
|
37
|
|
|
* |
|
38
|
|
|
* If only merged free/busy information is available, for example if the |
|
39
|
|
|
* mailbox exists on a computer running Exchange 2003, MergedOnly will be |
|
40
|
|
|
* returned. Otherwise, FreeBusyMerged or DetailedMerged will be returned. |
|
41
|
|
|
* |
|
42
|
|
|
* @since Exchange 2007 |
|
43
|
|
|
* |
|
44
|
|
|
* @var string |
|
45
|
|
|
*/ |
|
46
|
|
|
const DETAILED_MERGED = 'DetailedMerged'; |
|
47
|
|
|
/** |
|
48
|
|
|
* Represents the legacy status information: free, busy, tentative, and OOF. |
|
49
|
|
|
* |
|
50
|
|
|
* This also includes the start/end times of the appointments. This view is |
|
51
|
|
|
* richer than the legacy free/busy view because individual meeting start |
|
52
|
|
|
* and end times are provided instead of an aggregated free/busy stream. |
|
53
|
|
|
* |
|
54
|
|
|
* @since Exchange 2007 |
|
55
|
|
|
* |
|
56
|
|
|
* @var string |
|
57
|
|
|
*/ |
|
58
|
|
|
const FREE_BUSY = 'FreeBusy'; |
|
59
|
|
|
/** |
|
60
|
|
|
* Represents all the properties in FreeBusy with a stream of merged |
|
61
|
|
|
* free/busy availability information. |
|
62
|
|
|
* |
|
63
|
|
|
* @since Exchange 2007 |
|
64
|
|
|
* |
|
65
|
|
|
* @var string |
|
66
|
|
|
*/ |
|
67
|
|
|
const FREE_BUSY_MERGED = 'FreeBusyMerged'; |
|
68
|
|
|
/** |
|
69
|
|
|
* Represents an aggregated free/busy stream. |
|
70
|
|
|
* |
|
71
|
|
|
* In cross-forest scenarios in which the target user in one forest does not |
|
72
|
|
|
* have an Availability service configured, the Availability service of the |
|
73
|
|
|
* requester retrieves the target user’s free/busy information from the |
|
74
|
|
|
* free/busy public folder. Because public folders only store free/busy |
|
75
|
|
|
* information in merged form, MergedOnly is the only available information. |
|
76
|
|
|
* |
|
77
|
|
|
* @since Exchange 2007 |
|
78
|
|
|
* |
|
79
|
|
|
* @var string |
|
80
|
|
|
*/ |
|
81
|
|
|
const MERGED_ONLY = 'MergedOnly'; |
|
82
|
|
|
/** |
|
83
|
|
|
* This value is not valid for requests but is valid for responses. |
|
84
|
|
|
* |
|
85
|
|
|
* @since Exchange 2007 |
|
86
|
|
|
* |
|
87
|
|
|
* @var string |
|
88
|
|
|
*/ |
|
89
|
|
|
const NONE = 'None'; |
|
90
|
|
|
/** |
|
91
|
|
|
* Element value. |
|
92
|
|
|
* |
|
93
|
|
|
* @var string |
|
94
|
|
|
*/ |
|
95
|
|
|
public $_; |
|
96
|
|
|
/** |
|
97
|
|
|
* Returns the value of this object as a string. |
|
98
|
|
|
* |
|
99
|
|
|
* @return string |
|
100
|
|
|
*/ |
|
101
|
|
|
public function __toString() |
|
102
|
|
|
{ |
|
103
|
|
|
return $this->_; |
|
104
|
|
|
} |
|
105
|
|
|
} |