Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
DocumentController.php
1
<?php
2
3
namespace
Bitrix\Catalog\UI\FileUploader
;
4
5
use
Bitrix\Catalog\Access\AccessController
;
6
use
Bitrix\Catalog\Access\ActionDictionary
;
7
use
Bitrix\Main\Engine\CurrentUser
;
8
use
Bitrix\UI\FileUploader\FileOwnershipCollection
;
9
use
Bitrix\UI\FileUploader\Configuration
;
10
use
Bitrix\UI\FileUploader\UploaderController
;
11
12
class
DocumentController
extends
UploaderController
13
{
14
public
function
__construct
(array
$options
)
15
{
16
parent::__construct(
$options
);
17
}
18
19
public
function
isAvailable
(): bool
20
{
21
return
AccessController::getCurrent()->check(ActionDictionary::ACTION_CATALOG_READ);
22
}
23
24
public
function
getConfiguration
():
Configuration
25
{
26
return
new
Configuration
();
27
}
28
29
public
function
canUpload
(): bool
30
{
31
return
AccessController::getCurrent()->check(ActionDictionary::ACTION_STORE_VIEW);
32
}
33
34
public
function
verifyFileOwner
(
FileOwnershipCollection
$files): void
35
{
36
}
37
38
public
function
canView
(): bool
39
{
40
return
false
;
41
}
42
43
public
function
canRemove
(): bool
44
{
45
return
false
;
46
}
47
}
Bitrix\Catalog\Access\AccessController
Definition
AccessController.php:28
Bitrix\Catalog\Access\ActionDictionary
Definition
ActionDictionary.php:17
Bitrix\Catalog\UI\FileUploader\DocumentController
Definition
DocumentController.php:13
Bitrix\Catalog\UI\FileUploader\DocumentController\__construct
__construct(array $options)
Definition
DocumentController.php:14
Bitrix\Catalog\UI\FileUploader\DocumentController\canView
canView()
Definition
DocumentController.php:38
Bitrix\Catalog\UI\FileUploader\DocumentController\canRemove
canRemove()
Definition
DocumentController.php:43
Bitrix\Catalog\UI\FileUploader\DocumentController\getConfiguration
getConfiguration()
Definition
DocumentController.php:24
Bitrix\Catalog\UI\FileUploader\DocumentController\canUpload
canUpload()
Definition
DocumentController.php:29
Bitrix\Catalog\UI\FileUploader\DocumentController\isAvailable
isAvailable()
Definition
DocumentController.php:19
Bitrix\Catalog\UI\FileUploader\DocumentController\verifyFileOwner
verifyFileOwner(FileOwnershipCollection $files)
Definition
DocumentController.php:34
Bitrix\Main\Config\Configuration
Definition
configuration.php:7
Bitrix\Main\Engine\CurrentUser
Definition
currentuser.php:8
Bitrix\UI\FileUploader\Configuration
Definition
Configuration.php:9
Bitrix\UI\FileUploader\FileOwnershipCollection
Definition
FileOwnershipCollection.php:6
Bitrix\UI\FileUploader\UploaderController
Definition
UploaderController.php:6
Bitrix\UI\FileUploader\UploaderController\$options
array $options
Definition
UploaderController.php:7
Bitrix\Catalog\UI\FileUploader
Definition
DocumentController.php:3
modules
catalog
lib
UI
FileUploader
DocumentController.php
Создано системой
1.10.0