uawdijnntqw1x1x1
IP : 216.73.216.30
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) 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
/
.
/
files
/
need-2-delete
/
mini-borishof.ru1
/
bitrix
/
modules
/
vote
/
lib
/
.
/
.
/
attachment
/
connector.php
/
/
<?php namespace Bitrix\Vote\Attachment; use Bitrix\Main\Application; use Bitrix\Main\ObjectNotFoundException; use Bitrix\Main\Loader; use Bitrix\Main\SystemException; abstract class Connector { protected $entityId; public function __construct($entityId) { $this->entityId = $entityId; } /** * @param Attach $attachedObject Attach. * @return Connector * @throws ObjectNotFoundException * @throws SystemException */ final public static function buildFromAttachedObject(Attach $attachedObject) { if(!Loader::includeModule($attachedObject->getModuleId())) { throw new SystemException("Module {$attachedObject->getModuleId()} is not included."); } $className = str_replace('\\\\', '\\', $attachedObject->getEntityType()); /** @var \Bitrix\Vote\Attachment\Connector $connector */ $connector = new $className($attachedObject->getEntityId()); if(!$connector instanceof Connector) { throw new ObjectNotFoundException('Connector class should be instance of Connector.'); } if($connector instanceof Storable) { $connector->setStorage($attachedObject->getStorage()); } return $connector; } /** * @return string */ public static function className() { return get_called_class(); } /** * @todo finis this method * @return array */ public function getDataToShow() { return array(); } /** * @param integer $userId User ID. * @return bool */ public function canRead($userId) { return false; } /** * @param integer $userId User ID. * @return bool */ public function canEdit($userId) { return false; } /** * @return Application|\Bitrix\Main\HttpApplication|\CAllMain|\CMain */ protected function getApplication() { global $APPLICATION; return $APPLICATION; } /** * @return array|bool|\CAllUser|\CUser */ protected function getUser() { global $USER; return $USER; } }
/var/./files/need-2-delete/mini-borishof.ru1/bitrix/modules/vote/lib/././attachment/connector.php