Manager
extends BaseModel
in package
Table of Contents
Properties
- $createdAt : string|null
- $glossaryIds : array<string|int, int>
- $id : int
- $isApplicationAgent : bool
- $projectDefaultGlossaryIds : array<string|int, int>
- $projectDefaultTmIds : array<string|int, int>
- $projectIds : array<string|int, int>
- $status : string
- $styleGuideIds : array<string|int, int>
- $tmIds : array<string|int, int>
- $user : array<string|int, mixed>
Methods
- __construct() : mixed
- getCreatedAt() : string|null
- getGlossaryIds() : array<string|int, int>
- getId() : int
- getProjectDefaultGlossaryIds() : array<string|int, int>
- getProjectDefaultTmIds() : array<string|int, int>
- getProjectIds() : array<string|int, int>
- getStatus() : string
- getStyleGuideIds() : array<string|int, int>
- getTmIds() : array<string|int, int>
- getUser() : array<string|int, mixed>
- isApplicationAgent() : bool
- setGlossaryIds() : void
- setProjectIds() : void
- setStyleGuideIds() : void
- setTmIds() : void
Properties
$createdAt
protected
string|null
$createdAt
$glossaryIds
protected
array<string|int, int>
$glossaryIds
$id
protected
int
$id
$isApplicationAgent
protected
bool
$isApplicationAgent
$projectDefaultGlossaryIds
protected
array<string|int, int>
$projectDefaultGlossaryIds
$projectDefaultTmIds
protected
array<string|int, int>
$projectDefaultTmIds
$projectIds
protected
array<string|int, int>
$projectIds
$status
protected
string
$status
$styleGuideIds
protected
array<string|int, int>
$styleGuideIds
$tmIds
protected
array<string|int, int>
$tmIds
$user
protected
array<string|int, mixed>
$user
Methods
__construct()
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getCreatedAt()
public
getCreatedAt() : string|null
Return values
string|null —Null for managers added before this date was stored
getGlossaryIds()
public
getGlossaryIds() : array<string|int, int>
Return values
array<string|int, int>getId()
public
getId() : int
Return values
int —The same as the manager's user ID
getProjectDefaultGlossaryIds()
public
getProjectDefaultGlossaryIds() : array<string|int, int>
Return values
array<string|int, int> —Subset of glossaryIds that follow projectIds and can't be removed on their own
getProjectDefaultTmIds()
public
getProjectDefaultTmIds() : array<string|int, int>
Return values
array<string|int, int> —Subset of tmIds that follow projectIds and can't be removed on their own
getProjectIds()
public
getProjectIds() : array<string|int, int>
Return values
array<string|int, int>getStatus()
public
getStatus() : string
Return values
string —active or pending
getStyleGuideIds()
public
getStyleGuideIds() : array<string|int, int>
Return values
array<string|int, int>getTmIds()
public
getTmIds() : array<string|int, int>
Return values
array<string|int, int>getUser()
public
getUser() : array<string|int, mixed>
Return values
array<string|int, mixed> —id, username, fullName, avatarUrl. username is a masked email for an invited person without an account
isApplicationAgent()
public
isApplicationAgent() : bool
Return values
boolsetGlossaryIds()
public
setGlossaryIds(array<string|int, int> $glossaryIds) : void
Parameters
- $glossaryIds : array<string|int, int>
setProjectIds()
public
setProjectIds(array<string|int, int> $projectIds) : void
Parameters
- $projectIds : array<string|int, int>
-
Default TMs and glossaries of added projects are granted too
setStyleGuideIds()
public
setStyleGuideIds(array<string|int, int> $styleGuideIds) : void
Parameters
- $styleGuideIds : array<string|int, int>
setTmIds()
public
setTmIds(array<string|int, int> $tmIds) : void
Parameters
- $tmIds : array<string|int, int>