Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
im.php
1<?php
2
4
5use Bitrix\Disk\Driver;
6use Bitrix\Disk\Security\DiskSecurityContext;
7use Bitrix\Disk\Security\SecurityContext;
10use Bitrix\Disk\ProxyType;
11Loc::loadMessages(__FILE__);
12
13if (Loader::includeModule('disk'))
14{
15 class Im extends ProxyType\Base
16 {
17
22 public function getSecurityContextByUser($user)
23 {
24 return new DiskSecurityContext($user);
25 }
26
30 public function getStorageBaseUrl()
31 {
32 return '/';
33 }
34
38 public function getEntityUrl()
39 {
40 return '/';
41 }
42
46 public function getEntityTitle()
47 {
48 return Loc::getMessage('IM_DISK_STORAGE_TITLE');
49 }
50
54 public function getEntityImageSrc($width, $height)
55 {
56 return '/bitrix/js/im/images/blank.gif';
57 }
58
62 public function getTitle()
63 {
64 return $this->getEntityTitle();
65 }
66 }
67}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29