Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/bizproc/lib/Debugger/Session/ |
Upload File : |
<?php namespace Bitrix\Bizproc\Debugger\Session; class Document extends Entity\EO_DebuggerSessionDocument { public function getParameterDocumentId(): array { $this->fillSession(); $session = $this->getSession(); return [ $session->getModuleId(), $session->getEntity(), $this->getDocumentId(), ]; } public function getSignedDocument(): string { $this->fillSession(); $session = $this->getSession(); return \CBPDocument::signParameters([ $session->getParameterDocumentType(), $this->getRealCategoryId(), $this->getDocumentId(), ]); } public function getRealCategoryId() { $runtime = \CBPRuntime::GetRuntime(); $runtime->StartRuntime(); $documentService = $runtime->GetService('DocumentService'); $this->fillSession(); $session = $this->getSession(); return $documentService->getFieldValue( $this->getParameterDocumentId(), 'CATEGORY_ID', $session->getParameterDocumentType() ); } public function toArray(): array { return [ 'Id' => $this->getId(), 'SessionId' => $this->getSessionId(), 'DocumentId' => $this->getDocumentId(), 'DocumentCategoryId' => $this->getRealCategoryId(), 'DateExpire' => $this->getDateExpire() ? $this->getDateExpire()->getTimestamp() : null, ]; } }