ImportService
Table of Contents
Constants
-
IMPORT_ARCHIVE_ENTITY_TYPE
= 'IMPORT_ARCHIVE'
-
IMPORT_GROUP_CHAT_ENTITY_TYPE
= 'IMPORT_GROUP'
-
IMPORT_GROUP_FINISH_ENTITY_TYPE
= 'IMPORT_GROUP_FINISH'
-
IMPORT_PRIVATE_CHAT_ENTITY_TYPE
= 'IMPORT_PRIVATE'
-
IMPORT_PRIVATE_FINISH_ENTITY_TYPE
= 'IMPORT_PRIVATE_FINISH'
Methods
-
__construct()
: mixed
-
abort()
: Result
-
addMessages()
: Result
-
commitGroup()
: Result
-
commitPrivate()
: Result
-
create()
: Result
-
hasAccess()
: bool
-
isAdmin()
: bool
-
updateMessages()
: Result
IMPORT_ARCHIVE_ENTITY_TYPE
public
mixed
IMPORT_ARCHIVE_ENTITY_TYPE
= 'IMPORT_ARCHIVE'
IMPORT_GROUP_CHAT_ENTITY_TYPE
public
mixed
IMPORT_GROUP_CHAT_ENTITY_TYPE
= 'IMPORT_GROUP'
IMPORT_GROUP_FINISH_ENTITY_TYPE
public
mixed
IMPORT_GROUP_FINISH_ENTITY_TYPE
= 'IMPORT_GROUP_FINISH'
IMPORT_PRIVATE_CHAT_ENTITY_TYPE
public
mixed
IMPORT_PRIVATE_CHAT_ENTITY_TYPE
= 'IMPORT_PRIVATE'
IMPORT_PRIVATE_FINISH_ENTITY_TYPE
public
mixed
IMPORT_PRIVATE_FINISH_ENTITY_TYPE
= 'IMPORT_PRIVATE_FINISH'
__construct()
public
__construct(array<string|int, mixed> $chat[, int|null $userId = null ][, ImportSendingService|null $sendingService = null ]) : mixed
Parameters
-
$chat
: array<string|int, mixed>
-
-
$userId
: int|null
= null
-
-
$sendingService
: ImportSendingService|null
= null
-
abort()
public
abort() : Result
addMessages()
public
addMessages(array<string|int, mixed> $messages) : Result
Parameters
-
$messages
: array<string|int, mixed>
-
commitGroup()
public
commitGroup(array<string|int, mixed> $users, string $clientId) : Result
Parameters
-
$users
: array<string|int, mixed>
-
-
$clientId
: string
-
commitPrivate()
public
commitPrivate(bool $newIsMain, bool $hideOriginal, string $clientId) : Result
Parameters
-
$newIsMain
: bool
-
-
$hideOriginal
: bool
-
-
$clientId
: string
-
create()
public
static create(array<string|int, mixed> $chatData) : Result
Parameters
-
$chatData
: array<string|int, mixed>
-
hasAccess()
public
hasAccess() : bool
isAdmin()
public
static isAdmin(int $userId) : bool
Parameters
-
$userId
: int
-
updateMessages()
public
updateMessages(array<string|int, mixed> $messages) : Result
Parameters
-
$messages
: array<string|int, mixed>
-