Fix1047Task
extends AirlayTask
in package
Table of Contents
- checkAction() : void
- mainAction() : void
- abortWorkWithMessage() : never
- getDataSetTitle() : string
- parseFlagsFromParams() : void
- Parse command line arguments from array. Output default values if --help or -h argument specified.
- requestConfirm() : bool
- checkCollection() : void
- findAllNotExistingUsersIds() : array<string|int, ObjectId>
- fixCollection() : void
- removeUsersFromCollection() : void
Methods
checkAction()
public
checkAction() : void
Return values
void —mainAction()
public
mainAction() : void
Return values
void —abortWorkWithMessage()
protected
abortWorkWithMessage(string $message) : never
Parameters
- $message : string
Return values
never —getDataSetTitle()
protected
getDataSetTitle(array<string|int, mixed>|DataSetEntity $dataSet) : string
Parameters
- $dataSet : array<string|int, mixed>|DataSetEntity
Return values
string —parseFlagsFromParams()
Parse command line arguments from array. Output default values if --help or -h argument specified.
protected
parseFlagsFromParams(Flags $flags[, array<string|int, mixed> $params = [] ]) : void
Parameters
- $flags : Flags
- $params : array<string|int, mixed> = []
Return values
void —requestConfirm()
protected
requestConfirm(string $message) : bool
Parameters
- $message : string
Return values
bool —checkCollection()
private
checkCollection(GroupsCollection|DepartmentsCollection $collection) : void
Parameters
- $collection : GroupsCollection|DepartmentsCollection
Return values
void —findAllNotExistingUsersIds()
private
findAllNotExistingUsersIds(GroupsCollection|DepartmentsCollection $collection) : array<string|int, ObjectId>
Parameters
- $collection : GroupsCollection|DepartmentsCollection
Return values
array<string|int, ObjectId> —fixCollection()
private
fixCollection(GroupsCollection|DepartmentsCollection $collection) : void
Parameters
- $collection : GroupsCollection|DepartmentsCollection
Return values
void —removeUsersFromCollection()
private
removeUsersFromCollection(GroupsCollection|DepartmentsCollection $collection, array<string|int, ObjectId> $usersIds) : void
Parameters
- $collection : GroupsCollection|DepartmentsCollection
- $usersIds : array<string|int, ObjectId>