summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/exchange-includes/jamesiarmes/PhpEws/Enumeration/CreateActionType.php
blob: 29dd5d0cf7f6c31c7af0774dd33b5775344f2107 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
 * Contains \jamesiarmes\PhpEws\Enumeration\CreateActionType.
 */

namespace jamesiarmes\PhpEws\Enumeration;

use \jamesiarmes\PhpEws\Enumeration;

/**
 * Defines the action for uploading an item into a mailbox.
 *
 * @package php-ews\Enumeration
 */
class CreateActionType extends Enumeration
{
    /**
     * Indicates that a new copy of the original item is uploaded to the
     * mailbox.
     *
     * The ItemId element must not be present if the CreateNew value is used.
     * The new item identifier is returned in the response.
     *
     * @since Exchange 2010 SP1
     *
     * @var string
     */
    const CREATE = 'CreateNew';

    /**
     * Specifies that the item indicated by the ItemId element will be updated.
     *
     * An error is returned if the ItemId element is not present or if the item
     * does not exist in the folder identified by the ParentFolderId element.
     *
     * @since Exchange 2010 SP1
     *
     * @var string
     */
    const UPDATE = 'Update';

    /**
     * Indicates that an attempt is first made to update the item.
     *
     * If the item does not exist in the folder specified by the ParentFolderId
     * element, a new item is created.
     *
     * @since Exchange 2010 SP1
     *
     * @var string
     */
    const UPDATE_OR_CREATE = 'UpdateOrCreate';
}