-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDataObjectFolderResolverContract.php
More file actions
105 lines (86 loc) · 2.68 KB
/
DataObjectFolderResolverContract.php
File metadata and controls
105 lines (86 loc) · 2.68 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
declare(strict_types=1);
/**
* This source file is available under the terms of the
* Pimcore Open Core License (POCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
* @license Pimcore Open Core License (POCL)
*/
namespace Pimcore\Bundle\StaticResolverBundle\Contract\Models\DataObject;
use Pimcore\Model\DataObject\AbstractObject;
use Pimcore\Model\DataObject\Concrete;
use Pimcore\Model\DataObject\Folder;
use Pimcore\Model\DataObject\Listing;
class DataObjectFolderResolverContract implements DataObjectFolderResolverContractInterface
{
public function getById(int $id, array $params = []): null|Folder
{
return Folder::getById($id, $params);
}
public function create(array $values): Folder
{
return Folder::create($values);
}
public function getHideUnpublished(): bool
{
return Folder::getHideUnpublished();
}
public function setHideUnpublished(bool $hideUnpublished): void
{
Folder::setHideUnpublished($hideUnpublished);
}
public function doHideUnpublished(): bool
{
return Folder::doHideUnpublished();
}
public function getGetInheritedProperties(): bool
{
return Folder::getGetInheritedProperties();
}
public function setGetInheritedProperties(bool $getInheritedProperties): void
{
Folder::setGetInheritedProperties($getInheritedProperties);
}
public function setGetInheritedValues(bool $getInheritedValues): void
{
Folder::setGetInheritedValues($getInheritedValues);
}
public function getGetInheritedValues(): bool
{
return Folder::getGetInheritedValues();
}
public function doGetInheritedValues(?Concrete $object = null): bool
{
return Folder::doGetInheritedValues($object);
}
public function getTypes(): array
{
return Folder::getTypes();
}
public function getByPath(string $path, array $params = []): AbstractObject|null
{
return Folder::getByPath($path, $params);
}
/**
* @throws \Exception
*/
public function getList(array $config = []): Listing
{
return Folder::getList($config);
}
public function doNotRestoreKeyAndPath(): bool
{
return Folder::doNotRestoreKeyAndPath();
}
public function setDoNotRestoreKeyAndPath(bool $doNotRestoreKeyAndPath): void
{
Folder::setDoNotRestoreKeyAndPath($doNotRestoreKeyAndPath);
}
public function locateDaoClass(string $modelClass): ?string
{
return Folder::locateDaoClass($modelClass);
}
}