ProjectDependenceTable extends Mesh
FinalYes
Class DependenceTable
Fields:
- TASK_ID int mandatory
- DEPENDS_ON_ID int mandatory
Table of Contents
Constants
- LINK_TYPE_FINISH_FINISH = 0x3
- LINK_TYPE_FINISH_START = 0x2
- LINK_TYPE_START_FINISH = 0x1
- LINK_TYPE_START_START = 0x0
Methods
- checkItemLinked() : mixed
- Check if the item is linked with some other items
- checkLinkExists() : mixed
- createCollection() : EO_ProjectDependence_Collection
- createLink() : mixed
- Links one item with another. Low-level method.
- createObject() : EO_ProjectDependence
- deleteLink() : mixed
- Breaks link between nodes. Low-level method.
- deleteSubtree() : mixed
- dropLinkL() : mixed
- getById() : EO_ProjectDependence_Result
- getByPrimary() : EO_ProjectDependence_Result
- getClass() : static
- getDIRECTColumnName() : mixed
- getEntity() : EO_ProjectDependence_Entity
- getIDColumnName() : mixed
- getLinkCount() : mixed
- getLinkCountForUser() : mixed
- getList() : EO_ProjectDependence_Result
- getListByLegacyTaskFilter() : mixed
- Returns a list of INGOING DIRECT links according to the old-style (sutable for CTask::GetList()) filter A heavy-artillery function
- getMap() : array<string|int, mixed>
- Returns entity map definition.
- getMPCITYColumnName() : mixed
- getParentId() : mixed
- getPARENTIDColumnName() : mixed
- getPathToNode() : mixed
- getPathToNodeSql() : mixed
- getSubTree() : mixed
- getSubTreeSql() : mixed
- For better perfomance purposes
- getTableName() : string
- Returns DB table name for entity.
- link() : mixed
- moveLink() : mixed
- Moves subtree. Low-level method.
- query() : EO_ProjectDependence_Query
- unlink() : mixed
- validateType() : array<string|int, mixed>
- Returns validators for TYPE field.
- wakeUpCollection() : EO_ProjectDependence_Collection
- wakeUpObject() : EO_ProjectDependence
Constants
LINK_TYPE_FINISH_FINISH
public
mixed
LINK_TYPE_FINISH_FINISH
= 0x3
LINK_TYPE_FINISH_START
public
mixed
LINK_TYPE_FINISH_START
= 0x2
LINK_TYPE_START_FINISH
public
mixed
LINK_TYPE_START_FINISH
= 0x1
LINK_TYPE_START_START
public
mixed
LINK_TYPE_START_START
= 0x0
Methods
checkItemLinked()
Check if the item is linked with some other items
public
static checkItemLinked(mixed $id) : mixed
Parameters
- $id : mixed
checkLinkExists()
public
static checkLinkExists(mixed $id, mixed $parentId[, array<string|int, mixed> $parameters = array('BIDIRECTIONAL' => false) ]) : mixed
Parameters
- $id : mixed
- $parentId : mixed
- $parameters : array<string|int, mixed> = array('BIDIRECTIONAL' => false)
createCollection()
public
static createCollection() : EO_ProjectDependence_Collection
Return values
EO_ProjectDependence_CollectioncreateLink()
Links one item with another. Low-level method.
public
static createLink(mixed $id, mixed $parentId[, mixed $behaviour = array() ]) : mixed
Parameters
- $id : mixed
- $parentId : mixed
- $behaviour : mixed = array()
createObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_ProjectDependence
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_ProjectDependencedeleteLink()
Breaks link between nodes. Low-level method.
public
static deleteLink(mixed $id[, mixed $parentId = false ][, array<string|int, mixed> $behaviour = array('CHILDREN' => 'unlink') ]) : mixed
Parameters
- $id : mixed
- $parentId : mixed = false
- $behaviour : array<string|int, mixed> = array('CHILDREN' => 'unlink')
deleteSubtree()
public
static deleteSubtree(mixed $id) : mixed
Parameters
- $id : mixed
dropLinkL()
public
static dropLinkL(mixed $id[, mixed $parentId = false ][, mixed $behaviour = array('CHILDREN' => 'unlink') ]) : mixed
Parameters
- $id : mixed
- $parentId : mixed = false
- $behaviour : mixed = array('CHILDREN' => 'unlink')
getById()
public
static getById(mixed $id) : EO_ProjectDependence_Result
Parameters
- $id : mixed
Return values
EO_ProjectDependence_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_ProjectDependence_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_ProjectDependence_ResultgetClass()
public
static getClass() : static
Return values
staticgetDIRECTColumnName()
public
static getDIRECTColumnName() : mixed
getEntity()
public
static getEntity() : EO_ProjectDependence_Entity
Return values
EO_ProjectDependence_EntitygetIDColumnName()
public
static getIDColumnName() : mixed
getLinkCount()
public
static getLinkCount() : mixed
getLinkCountForUser()
public
static getLinkCountForUser([mixed $userId = 0 ]) : mixed
Parameters
- $userId : mixed = 0
getList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_ProjectDependence_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_ProjectDependence_ResultgetListByLegacyTaskFilter()
Returns a list of INGOING DIRECT links according to the old-style (sutable for CTask::GetList()) filter A heavy-artillery function
public
static getListByLegacyTaskFilter([array<string|int, mixed> $filter = array() ][, array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
- $filter : array<string|int, mixed> = array()
- $parameters : array<string|int, mixed> = array()
getMap()
Returns entity map definition.
public
static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getMPCITYColumnName()
public
static getMPCITYColumnName() : mixed
getParentId()
public
static getParentId(mixed $id) : mixed
Parameters
- $id : mixed
getPARENTIDColumnName()
public
static getPARENTIDColumnName() : mixed
getPathToNode()
public
static getPathToNode(mixed $id[, mixed $parameters = array() ]) : mixed
Parameters
- $id : mixed
- $parameters : mixed = array()
getPathToNodeSql()
public
static getPathToNodeSql(mixed $id) : mixed
Parameters
- $id : mixed
getSubTree()
public
static getSubTree(mixed $id[, mixed $parameters = array() ][, array<string|int, mixed> $behaviour = array('INCLUDE_SELF' => true) ]) : mixed
Parameters
- $id : mixed
- $parameters : mixed = array()
- $behaviour : array<string|int, mixed> = array('INCLUDE_SELF' => true)
getSubTreeSql()
For better perfomance purposes
public
static getSubTreeSql(mixed $id) : mixed
Parameters
- $id : mixed
getTableName()
Returns DB table name for entity.
public
static getTableName() : string
Return values
stringlink()
public
static link(mixed $id, mixed $parentId) : mixed
Parameters
- $id : mixed
- $parentId : mixed
moveLink()
Moves subtree. Low-level method.
public
static moveLink(mixed $id, mixed $parentId[, mixed $behaviour = array('CREATE_PARENT_NODE_ON_NOTFOUND' => true) ]) : mixed
Parameters
- $id : mixed
- $parentId : mixed
- $behaviour : mixed = array('CREATE_PARENT_NODE_ON_NOTFOUND' => true)
query()
public
static query() : EO_ProjectDependence_Query
Return values
EO_ProjectDependence_Queryunlink()
public
static unlink(mixed $id) : mixed
Parameters
- $id : mixed
validateType()
Returns validators for TYPE field.
public
static validateType() : array<string|int, mixed>
Return values
array<string|int, mixed>wakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_ProjectDependence_Collection
Parameters
- $rows : mixed
Return values
EO_ProjectDependence_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_ProjectDependence
Parameters
- $row : mixed