CheckListFields
Class CheckListFields
Table of Contents
Constants
- MEMBER_TYPES = ['accomplice' => 'A', 'auditor' => 'U']
Methods
- __construct() : mixed
- CheckListFields constructor.
- addAttachment() : mixed
- checkFields() : Result
- Checks if fields are correct and ready to save
- getAttachments() : array<string|int, mixed>
- getCompletedCount() : int
- getCopiedId() : null|int
- getCreatedBy() : null|int
- getDisplaySortIndex() : string
- getEntityId() : null|int
- getFields() : array<string|int, mixed>
- Returns all checklist fields.
- getId() : null|int
- getIsComplete() : bool
- getIsImportant() : bool
- getMembers() : array<string|int, mixed>
- getParentId() : null|int
- getSortIndex() : null|int
- getTitle() : string
- getUserId() : null|int
- removeAttachment() : mixed
- removeMember() : mixed
- setAttachments() : mixed
- setCompletedCount() : mixed
- setCopiedId() : mixed
- setCreatedBy() : mixed
- setDisplaySortIndex() : mixed
- setEntityId() : mixed
- setFields() : mixed
- Sets values to fields after checking.
- setId() : mixed
- setIsComplete() : mixed
- setIsImportant() : mixed
- setMembers() : mixed
- setParentId() : mixed
- setSortIndex() : mixed
- setTitle() : mixed
- setUserId() : mixed
Constants
MEMBER_TYPES
public
mixed
MEMBER_TYPES
= ['accomplice' => 'A', 'auditor' => 'U']
Methods
__construct()
CheckListFields constructor.
public
__construct(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>
addAttachment()
public
addAttachment(mixed $fileId) : mixed
Parameters
- $fileId : mixed
checkFields()
Checks if fields are correct and ready to save
public
checkFields() : Result
Return values
ResultgetAttachments()
public
getAttachments() : array<string|int, mixed>
Return values
array<string|int, mixed>getCompletedCount()
public
getCompletedCount() : int
Return values
intgetCopiedId()
public
getCopiedId() : null|int
Return values
null|intgetCreatedBy()
public
getCreatedBy() : null|int
Return values
null|intgetDisplaySortIndex()
public
getDisplaySortIndex() : string
Return values
stringgetEntityId()
public
getEntityId() : null|int
Return values
null|intgetFields()
Returns all checklist fields.
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
public
getId() : null|int
Return values
null|intgetIsComplete()
public
getIsComplete() : bool
Return values
boolgetIsImportant()
public
getIsImportant() : bool
Return values
boolgetMembers()
public
getMembers() : array<string|int, mixed>
Return values
array<string|int, mixed>getParentId()
public
getParentId() : null|int
Return values
null|intgetSortIndex()
public
getSortIndex() : null|int
Return values
null|intgetTitle()
public
getTitle() : string
Return values
stringgetUserId()
public
getUserId() : null|int
Return values
null|intremoveAttachment()
public
removeAttachment(mixed $attachmentId) : mixed
Parameters
- $attachmentId : mixed
removeMember()
public
removeMember(mixed $memberId) : mixed
Parameters
- $memberId : mixed
setAttachments()
public
setAttachments(mixed $attachments) : mixed
Parameters
- $attachments : mixed
setCompletedCount()
public
setCompletedCount(mixed $completedCount) : mixed
Parameters
- $completedCount : mixed
setCopiedId()
public
setCopiedId(mixed $copiedId) : mixed
Parameters
- $copiedId : mixed
setCreatedBy()
public
setCreatedBy(mixed $createdBy) : mixed
Parameters
- $createdBy : mixed
setDisplaySortIndex()
public
setDisplaySortIndex(mixed $displaySortIndex) : mixed
Parameters
- $displaySortIndex : mixed
setEntityId()
public
setEntityId(mixed $entityId) : mixed
Parameters
- $entityId : mixed
setFields()
Sets values to fields after checking.
public
setFields(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>
setId()
public
setId(mixed $id) : mixed
Parameters
- $id : mixed
setIsComplete()
public
setIsComplete(mixed $isComplete) : mixed
Parameters
- $isComplete : mixed
setIsImportant()
public
setIsImportant(mixed $isImportant) : mixed
Parameters
- $isImportant : mixed
setMembers()
public
setMembers(mixed $members) : mixed
Parameters
- $members : mixed
setParentId()
public
setParentId(mixed $parentId) : mixed
Parameters
- $parentId : mixed
setSortIndex()
public
setSortIndex(mixed $sortIndex) : mixed
Parameters
- $sortIndex : mixed
setTitle()
public
setTitle(mixed $title) : mixed
Parameters
- $title : mixed
setUserId()
public
setUserId(mixed $userId) : mixed
Parameters
- $userId : mixed