/
ContentCreateStruct.php
77 lines (67 loc) · 1.92 KB
/
ContentCreateStruct.php
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);
namespace Ibexa\Contracts\Core\Repository\Values\Content;
/**
* This class is used for creating a new content object.
*
* @property \Ibexa\Contracts\Core\Repository\Values\Content\Field[] $fields
*/
abstract class ContentCreateStruct extends ContentStruct
{
/**
* The content type for which the new content is created.
*
* Required.
*
* @var \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType
*/
public $contentType;
/**
* The section the content is assigned to.
* If not set the section of the parent is used or a default section.
*
* @var mixed
*/
public $sectionId;
/**
* The owner of the content. If not given the current authenticated user is set as owner.
*
* @var mixed
*/
public $ownerId;
/**
* Indicates if the content object is shown in the mainlanguage if its not present in an other requested language.
*
* @var bool
*/
public $alwaysAvailable;
/**
* Remote identifier used as a custom identifier for the object.
*
* Needs to be a unique Content->remoteId string value.
*
* @var string
*/
public $remoteId;
/**
* the main language code for the content. This language will also
* be used for as initial language for the first created version.
* It is also used as default language for added fields.
*
* Required.
*
* @var string
*/
public $mainLanguageCode;
/**
* Modification date. If not given the current timestamp is used.
*
* @var \DateTime
*/
public $modificationDate;
}
class_alias(ContentCreateStruct::class, 'eZ\Publish\API\Repository\Values\Content\ContentCreateStruct');