EntityForm
Table of Contents
Constants
- BACKLOG_TYPE = 'backlog'
- SPRINT_ACTIVE = 'active'
- SPRINT_COMPLETED = 'completed'
- SPRINT_PLANNED = 'planned'
- SPRINT_TYPE = 'sprint'
- STATE_COMPLETED_IN_ACTIVE_SPRINT = 'completedInActiveSprint'
Methods
- fillFromDatabase() : void
- To fill the object with data obtained from the database.
- getChildren() : array<string|int, mixed>
- getCreatedBy() : int
- getDateEnd() : DateTime
- getDateStart() : DateTime
- getEntityType() : string
- getFieldsToCreateBacklog() : array<string|int, mixed>
- Returns a list of fields to create a backlog.
- getFieldsToCreateSprint() : array<string|int, mixed>
- Returns a list of fields to create a sprint.
- getFieldsToUpdateEntity() : array<string|int, mixed>
- Returns a list of fields to update an entity.
- getGroupId() : int
- getId() : int
- getInfo() : EntityInfo
- getModifiedBy() : int
- getName() : string
- getSort() : int
- getStatus() : string
- getTmpId() : string
- hideContent() : void
- Makes the content invisible to the specified user.
- isActiveSprint() : bool
- isCompletedSprint() : bool
- isEmpty() : bool
- Checks if an object is empty based on an Id. If id empty, it means that it was not possible to get data from the storage or did not fill out the id.
- isPlannedSprint() : bool
- isShownContent() : bool
- The method checks if the content of the entity (Backlog/Sprint) is hidden for the specified user.
- setChildren() : void
- setCreatedBy() : void
- setDateEnd() : void
- setDateStart() : void
- setEntityType() : void
- setGroupId() : void
- setId() : void
- setInfo() : void
- setModifiedBy() : void
- setName() : void
- setSort() : void
- setStatus() : void
- setTmpId() : void
- showContent() : void
- Makes the content visible to the specified user.
- toArray() : array<string|int, mixed>
- Returns an array with keys for the client.
- toRest() : array<string|int, mixed>
- Returns an array with keys for the REST.
Constants
BACKLOG_TYPE
public
mixed
BACKLOG_TYPE
= 'backlog'
SPRINT_ACTIVE
public
mixed
SPRINT_ACTIVE
= 'active'
SPRINT_COMPLETED
public
mixed
SPRINT_COMPLETED
= 'completed'
SPRINT_PLANNED
public
mixed
SPRINT_PLANNED
= 'planned'
SPRINT_TYPE
public
mixed
SPRINT_TYPE
= 'sprint'
STATE_COMPLETED_IN_ACTIVE_SPRINT
public
mixed
STATE_COMPLETED_IN_ACTIVE_SPRINT
= 'completedInActiveSprint'
Methods
fillFromDatabase()
To fill the object with data obtained from the database.
public
fillFromDatabase(array<string|int, mixed> $fields) : void
Parameters
- $fields : array<string|int, mixed>
-
An array with fields.
getChildren()
public
getChildren() : array<string|int, mixed>
Return values
array<string|int, mixed>getCreatedBy()
public
getCreatedBy() : int
Return values
intgetDateEnd()
public
getDateEnd() : DateTime
Return values
DateTimegetDateStart()
public
getDateStart() : DateTime
Return values
DateTimegetEntityType()
public
getEntityType() : string
Return values
stringgetFieldsToCreateBacklog()
Returns a list of fields to create a backlog.
public
getFieldsToCreateBacklog() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getFieldsToCreateSprint()
Returns a list of fields to create a sprint.
public
getFieldsToCreateSprint() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getFieldsToUpdateEntity()
Returns a list of fields to update an entity.
public
getFieldsToUpdateEntity() : array<string|int, mixed>
Return values
array<string|int, mixed>getGroupId()
public
getGroupId() : int
Return values
intgetId()
public
getId() : int
Return values
intgetInfo()
public
getInfo() : EntityInfo
Return values
EntityInfogetModifiedBy()
public
getModifiedBy() : int
Return values
intgetName()
public
getName() : string
Return values
stringgetSort()
public
getSort() : int
Return values
intgetStatus()
public
getStatus() : string
Return values
stringgetTmpId()
public
getTmpId() : string
Return values
stringhideContent()
Makes the content invisible to the specified user.
public
hideContent(int $userId) : void
Parameters
- $userId : int
-
User id.
isActiveSprint()
public
isActiveSprint() : bool
Return values
boolisCompletedSprint()
public
isCompletedSprint() : bool
Return values
boolisEmpty()
Checks if an object is empty based on an Id. If id empty, it means that it was not possible to get data from the storage or did not fill out the id.
public
isEmpty() : bool
Return values
boolisPlannedSprint()
public
isPlannedSprint() : bool
Return values
boolisShownContent()
The method checks if the content of the entity (Backlog/Sprint) is hidden for the specified user.
public
isShownContent(int $userId) : bool
Parameters
- $userId : int
-
User id.
Return values
boolsetChildren()
public
setChildren(array<string|int, mixed> $children) : void
Parameters
- $children : array<string|int, mixed>
setCreatedBy()
public
setCreatedBy(mixed $createdBy) : void
Parameters
- $createdBy : mixed
setDateEnd()
public
setDateEnd(DateTime $dateEnd) : void
Parameters
- $dateEnd : DateTime
setDateStart()
public
setDateStart(DateTime $dateStart) : void
Parameters
- $dateStart : DateTime
setEntityType()
public
setEntityType(mixed $entityType) : void
Parameters
- $entityType : mixed
setGroupId()
public
setGroupId(mixed $groupId) : void
Parameters
- $groupId : mixed
setId()
public
setId(mixed $id) : void
Parameters
- $id : mixed
setInfo()
public
setInfo(EntityInfo $entityInfo) : void
Parameters
- $entityInfo : EntityInfo
setModifiedBy()
public
setModifiedBy(mixed $modifiedBy) : void
Parameters
- $modifiedBy : mixed
setName()
public
setName(mixed $name) : void
Parameters
- $name : mixed
setSort()
public
setSort(mixed $sort) : void
Parameters
- $sort : mixed
setStatus()
public
setStatus(string $status) : void
Parameters
- $status : string
setTmpId()
public
setTmpId(mixed $tmpId) : void
Parameters
- $tmpId : mixed
showContent()
Makes the content visible to the specified user.
public
showContent(int $userId) : void
Parameters
- $userId : int
-
User id.
toArray()
Returns an array with keys for the client.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>toRest()
Returns an array with keys for the REST.
public
toRest() : array<string|int, mixed>