1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Copilot
Граф наследования:Copilot:
Controller Errorable Controllerable

Открытые члены

 getDefaultPreFilters ()
 addChatToSiteAction (int $siteId, int $chatId)
 sendBlockGenerationNeedSelectMessageAction (int $siteId)
 sendBlockGenerationWrongSelectMessageAction (int $siteId)
 executeBlockGenerationAction (int $siteId, int $blockId, string $wishes)
Открытые члены унаследованные от Controller
 __construct (Request $request=null)
 forward ($controller, string $actionName, array $parameters=null)
 getConfigurationOfActions ()
 getModuleId ()
 isLocatedUnderPsr4 ()
 getActionUri (string $actionName, array $params=[], bool $absolute=false)
 getUnsignedParameters ()
 getCurrentUser ()
 setCurrentUser (CurrentUser $currentUser)
 convertKeysToCamelCase ($data)
 listNameActions ()
 configureActions ()
 getAutoWiredParameters ()
 getPrimaryAutoWiredParameter ()
 getDefaultAutoWiredParameters ()
 getRequest ()
 getScope ()
 setScope ($scope)
 getSourceParametersList ()
 setSourceParametersList ($sourceParametersList)
 run ($actionName, array $sourceParametersList)
 finalizeResponse (Response $response)
 generateActionMethodName ($action)
 redirectTo ($url)
 getErrors ()
 hasErrors ()
 getErrorByCode ($code)

Открытые статические члены

static executeGenerationAction (int $generationId)
Открытые статические члены унаследованные от Controller
static className ()
static getFullEventName ($eventName)

Дополнительные унаследованные члены

Поля данных унаследованные от Controller
const SCOPE_REST = 'rest'
const SCOPE_AJAX = 'ajax'
const SCOPE_CLI = 'cli'
const EVENT_ON_BEFORE_ACTION = 'onBeforeAction'
const EVENT_ON_AFTER_ACTION = 'onAfterAction'
const ERROR_REQUIRED_PARAMETER = 'MAIN_CONTROLLER_22001'
const ERROR_UNKNOWN_ACTION = 'MAIN_CONTROLLER_22002'
const EXCEPTION_UNKNOWN_ACTION = 22002
Поля данных унаследованные от Controllerable
const METHOD_ACTION_SUFFIX = 'Action'
Защищенные члены унаследованные от Controller
 init ()
 getFilePath ()
 processUnsignedParameters ()
 getSaltToUnsign ()
 getActionResponse (Action $action)
 writeToLogException (\Throwable $e)
 collectDebugInfo ()
 logDebugInfo ()
 prepareParams ()
 processBeforeAction (Action $action)
 triggerOnBeforeAction (Action $action)
 processAfterAction (Action $action, $result)
 triggerOnAfterAction (Action $action, $result)
 create ($actionName)
 buildActionInstance ($actionName, array $config)
 existsAction ($actionName)
 getDefaultPostFilters ()
 buildFilters (array $config=null)
 appendFilters (array $filters, array $filtersToAppend)
 removeFilters (array $filters, array $filtersToRemove)
 detachFilters (Action $action)
 detachPreFilters (Action $action)
 detachPostFilters (Action $action)
 getActionConfig ($actionName)
 setActionConfig ($actionName, array $config=null)
 runProcessingThrowable (\Throwable $throwable)
 runProcessingException (\Exception $e)
 runProcessingError (\Error $error)
 runProcessingBinderThrowable (BinderArgumentException $e)
 runProcessingValidationException (ValidationException $e)
 buildErrorFromException (\Exception $e)
 buildErrorFromPhpError (\Error $error)
 runProcessingIfUserNotAuthorized ()
 runProcessingIfInvalidCsrfToken ()
 addError (Error $error)
 addErrors (array $errors)
 renderComponent (string $name, string $template='', array $params=[], bool $withSiteTemplate=true)
 renderView (string $viewPath, array $params=[], bool $withSiteTemplate=true)
 renderExtension (string $extension, array $params=[], bool $withSiteTemplate=true)
Защищенные данные унаследованные от Controller
 $errorCollection
 $request
Configurator $configurator

Подробное описание

См. определение в файле copilot.php строка 13

Методы

◆ addChatToSiteAction()

addChatToSiteAction ( int $siteId,
int $chatId )

Save relations between chat, site and user

Аргументы
int$siteId
int$chatId
Возвращает
bool

См. определение в файле copilot.php строка 29

◆ executeBlockGenerationAction()

executeBlockGenerationAction ( int $siteId,
int $blockId,
string $wishes )

См. определение в файле copilot.php строка 110

◆ executeGenerationAction()

executeGenerationAction ( int $generationId)
static

Try to find and execute AI generation

Аргументы
int$generationId
Возвращает
bool

См. определение в файле copilot.php строка 39

◆ getDefaultPreFilters()

getDefaultPreFilters ( )

Returns default pre-filters for action.

Возвращает
array

Переопределяет метод предка Controller.

См. определение в файле copilot.php строка 15

◆ sendBlockGenerationNeedSelectMessageAction()

sendBlockGenerationNeedSelectMessageAction ( int $siteId)

См. определение в файле copilot.php строка 78

◆ sendBlockGenerationWrongSelectMessageAction()

sendBlockGenerationWrongSelectMessageAction ( int $siteId)

См. определение в файле copilot.php строка 94


Объявления и описания членов класса находятся в файле: