Bitrix-D7 23.9
 
Указатель Классы Пространства имен Функции Переменные
Загрузка...
Поиск...
Не найдено
Класс Message
+ Граф наследования:Message:

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

 getPrimaryAutoWiredParameter ()
 
 getAutoWiredParameters ()
 
 configureActions ()
 
 readAction (MessageCollection $messages)
 
 tailViewersAction (\Bitrix\Im\V2\Message $message, array $filter=[], array $order=[], int $limit=50)
 
 markAction (\Bitrix\Im\V2\Message $message)
 
 listAction (Chat $chat, int $limit=self::MESSAGE_ON_PAGE_COUNT)
 
 getContextAction (\Bitrix\Im\V2\Message $message, int $range=self::MESSAGE_ON_PAGE_COUNT)
 
 tailAction (Chat $chat, array $filter=[], array $order=[], int $limit=50)
 
 searchAction (Chat $chat, array $filter=[], array $order=[], int $limit=50)
 
 pinAction (\Bitrix\Im\V2\Message $message)
 
 unpinAction (\Bitrix\Im\V2\Message $message)
 
 deleteAction (\Bitrix\Im\V2\Message $message)
 
 disappearAction (\Bitrix\Im\V2\Message $message, int $hours)
 
 sendAction (Chat $chat, ?\CRestServer $restServer=null, array $fields=[], ?MessageCollection $forwardMessages=null)
 
 updateAction (\Bitrix\Im\V2\Message $message, array $fields=[], string $urlPreview='Y', int $botId=0)
 
 informAction (\Bitrix\Im\V2\Message $message)
 
 deleteRichUrlAction (\Bitrix\Im\V2\Message $message, CurrentUser $user)
 
- Открытые члены унаследованные от 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 ()
 
 getDefaultAutoWiredParameters ()
 
 getRequest ()
 
 getScope ()
 
 setScope ($scope)
 
 getSourceParametersList ()
 
 setSourceParametersList ($sourceParametersList)
 
 run ($actionName, array $sourceParametersList)
 
 finalizeResponse (Response $response)
 
 generateActionMethodName ($action)
 
 redirectTo ($url)
 
 getErrors ()
 
 getErrorByCode ($code)
 

Защищенные члены

 prepareParamsForTail (Chat $chat, array $filter, array $order)
 
 prepareParamsForSearch (Chat $chat, array $filter, array $order)
 
 getMessages (array $filter, array $order, int $limit)
 
- Защищенные члены унаследованные от BaseController
 getDefaultPreFilters ()
 
 getLimit (int $limit)
 
 toRestFormat (RestConvertible ... $entities)
 
 checkWhiteList (array $fields, array $whiteList)
 
 getMessageById (int $id)
 
 convertCharToBool (string $char, bool $default=false)
 
 getRawValue (string $key)
 
- Защищенные члены унаследованные от Controller
 init ()
 
 getFilePath ()
 
 processUnsignedParameters ()
 
 getSaltToUnsign ()
 
 writeToLogException (\Throwable $e)
 
 collectDebugInfo ()
 
 logDebugInfo ()
 
 prepareParams ()
 
 processBeforeAction (Action $action)
 
 shouldDecodePostData (Action $action)
 
 decodePostData ()
 
 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)
 
 buildErrorFromException (\Exception $e)
 
 buildErrorFromPhpError (\Error $error)
 
 runProcessingIfUserNotAuthorized ()
 
 runProcessingIfInvalidCsrfToken ()
 
 addError (Error $error)
 
 addErrors (array $errors)
 

Защищенные данные

const MAX_MESSAGES_COUNT = 100
 
const MAX_MESSAGES_COUNT_FOR_FORWARD = 20
 
const MESSAGE_ON_PAGE_COUNT = 50
 
- Защищенные данные унаследованные от BaseController
const MAX_LIMIT = 200
 
const DEFAULT_LIMIT = 50
 
- Защищенные данные унаследованные от Controller
 $errorCollection
 
 $request
 
Configurator $configurator
 

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

- Открытые статические члены унаследованные от BaseController
static recursiveWhiteList ($fields, $whiteList, bool $sanitizeOnly=false)
 
- Открытые статические члены унаследованные от 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'
 

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

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

Методы

◆ configureActions()

configureActions ( )
Возвращает
array

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

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

◆ deleteAction()

deleteAction ( \Bitrix\Im\V2\Message $message)

@restMethod im.v2.Chat.Message.delete

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

◆ deleteRichUrlAction()

deleteRichUrlAction ( \Bitrix\Im\V2\Message $message,
CurrentUser $user )

@restMethod im.v2.Chat.Message.deleteRichUrl

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

◆ disappearAction()

disappearAction ( \Bitrix\Im\V2\Message $message,
int $hours )

@restMethod im.v2.Chat.Message.disappear

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

◆ getAutoWiredParameters()

getAutoWiredParameters ( )
Возвращает
Parameter[]

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

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

◆ getContextAction()

getContextAction ( \Bitrix\Im\V2\Message $message,
int $range = self::MESSAGE_ON_PAGE_COUNT )

@restMethod im.v2.Chat.Message.getContext

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

◆ getMessages()

getMessages ( array $filter,
array $order,
int $limit )
protected

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

◆ getPrimaryAutoWiredParameter()

getPrimaryAutoWiredParameter ( )
Возвращает
Parameter|null

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

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

◆ informAction()

informAction ( \Bitrix\Im\V2\Message $message)

@restMethod im.v2.Chat.Message.inform

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

◆ listAction()

listAction ( Chat $chat,
int $limit = self::MESSAGE_ON_PAGE_COUNT )

@restMethod im.v2.Chat.Message.list

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

◆ markAction()

markAction ( \Bitrix\Im\V2\Message $message)

@restMethod im.v2.Chat.Message.mark

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

◆ pinAction()

pinAction ( \Bitrix\Im\V2\Message $message)

@restMethod im.v2.Chat.Message.pin

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

◆ prepareParamsForSearch()

prepareParamsForSearch ( Chat $chat,
array $filter,
array $order )
protected

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

◆ prepareParamsForTail()

prepareParamsForTail ( Chat $chat,
array $filter,
array $order )
protected

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

◆ readAction()

readAction ( MessageCollection $messages)

@restMethod im.v2.Chat.Message.read

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

◆ searchAction()

searchAction ( Chat $chat,
array $filter = [],
array $order = [],
int $limit = 50 )

@restMethod im.v2.Chat.Message.search

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

◆ sendAction()

sendAction ( Chat $chat,
?\CRestServer $restServer = null,
array $fields = [],
?MessageCollection $forwardMessages = null )

@restMethod im.v2.Chat.Message.send

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

◆ tailAction()

tailAction ( Chat $chat,
array $filter = [],
array $order = [],
int $limit = 50 )

@restMethod im.v2.Chat.Message.tail

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

◆ tailViewersAction()

tailViewersAction ( \Bitrix\Im\V2\Message $message,
array $filter = [],
array $order = [],
int $limit = 50 )

@restMethod im.v2.Chat.Message.tailViewers

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

◆ unpinAction()

unpinAction ( \Bitrix\Im\V2\Message $message)

@restMethod im.v2.Chat.Message.unpin

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

◆ updateAction()

updateAction ( \Bitrix\Im\V2\Message $message,
array $fields = [],
string $urlPreview = 'Y',
int $botId = 0 )

@restMethod im.v2.Chat.Message.update

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

Данные класса

◆ MAX_MESSAGES_COUNT

const MAX_MESSAGES_COUNT = 100
protected

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

◆ MAX_MESSAGES_COUNT_FOR_FORWARD

const MAX_MESSAGES_COUNT_FOR_FORWARD = 20
protected

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

◆ MESSAGE_ON_PAGE_COUNT

const MESSAGE_ON_PAGE_COUNT = 50
protected

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