uawdijnntqw1x1x1
IP : 18.222.178.70
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
msk.axolotls.ru
/
bitrix
/
modules
/
disk
/
lib
/
proxytype
/
user.php
/
/
<?php namespace Bitrix\Disk\ProxyType; use Bitrix\Disk\SystemUser; use Bitrix\Disk\User as UserModel; use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); class User extends Disk { /** @var \Bitrix\Disk\User */ private $user; /** * Potential opportunity to attach object to external entity * @return bool */ public function canAttachToExternalEntity() { return true; } /** * Get url to view entity of storage (ex. user profile, group profile, etc) * By default: folder list * @return string */ public function getEntityUrl() { return $this->getUser()->getDetailUrl(); } /** * Get name of entity (ex. user last name + first name, group name, etc) * By default: get title * @return string */ public function getEntityTitle() { $user = $this->getUser(); return isset($user)? $user->getFormattedName() : parent::getEntityTitle(); } /** * Get image (avatar) of entity. * Can be shown with entityTitle in different lists. * @param int $width Image width. * @param int $height Image height. * @return string */ public function getEntityImageSrc($width, $height) { return $this->getUser()->getAvatarSrc($width, $height); } /** * Return name of storage. * @return string */ public function getTitle() { return Loc::getMessage('DISK_PROXY_TYPE_USER_TITLE'); } /** * Return name of storage. * May be concrete by current user context. * Should not use in notification, email to another person. * @return string */ public function getTitleForCurrentUser() { global $USER; if($USER instanceof \CUser && $USER->getId() == $this->entityId) { return Loc::getMessage('DISK_PROXY_TYPE_USER_TITLE_CURRENT_USER'); } return parent::getTitle(); } /** * Returns user model for the proxy type. * @return \Bitrix\Disk\User|null */ public function getUser() { if($this->user !== null) { return $this->user; } $this->user = UserModel::loadById($this->entityId); if(!$this->user) { $this->user = SystemUser::create(); } return $this->user; } }
/var/www/axolotl/data/www/msk.axolotls.ru/bitrix/modules/disk/lib/proxytype/user.php