All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Protected Member Functions
TaskKanbanBoardExtendedGridView Class Reference
Inheritance diagram for TaskKanbanBoardExtendedGridView:
KanbanBoardExtendedGridView StackedExtendedGridView ExtendedGridView

Static Public Member Functions

static registerKanbanColumnSortableScript ()
 
static getMaxCount ()
 
- Static Public Member Functions inherited from KanbanBoardExtendedGridView
static resolvePageSizeForMaxCount ()
 
static getMaxCount ()
 

Data Fields

 $relatedModelId
 
 $relatedModelClassName
 
 $columnsData
 
- Data Fields inherited from KanbanBoardExtendedGridView
 $enablePagination = false
 
 $groupByAttribute
 
 $groupByAttributeVisibleValues = array()
 
 $groupByDataAndTranslatedLabels = array()
 
 $cardColumns = array()
 
 $selectedTheme
 
- Data Fields inherited from StackedExtendedGridView
const ROW_TYPE_TD = 'td'
 
const ROW_TYPE_DIV = 'div'
 
- Data Fields inherited from ExtendedGridView
const CLONE_SUMMARY_CLASS = 'list-view-items-summary-clone'
 
 $template = "{selectRowsSelectors}{summary}\n{items}\n{pager}"
 
 $nullDisplay = ' '
 
 $blankDisplay = ' '
 
 $cssFile = false
 
 $summaryCloneId
 
 $renderSpanOnEmptyText = true
 
 $tableColumnGroup = array()
 

Protected Member Functions

 resolveDataIntoKanbanColumns ()
 
 resolveOrderByType ($columnsData, $type)
 
 makeColumnsDataAndStructure ()
 
 renderUlTagForKanbanColumn ($listItems, $attributeValue=null)
 
 registerScripts ()
 
 registerKanbanColumnScripts ()
 
 registerKanbanColumnStartActionScript ($sourceButtonClass, $label, $targetStatus, $url)
 
 registerKanbanColumnFinishActionScript ($labelAccept, $labelReject, $targetStatus, $url)
 
 getRowClassForTaskKanbanColumn ($data)
 
 createTaskItemForKanbanColumn ($data, $row)
 
 getListItemsByAttributeValueAndData ($attributeValueAndData)
 
 registerButtonActionScript ($sourceActionButtonClass, $targetKanbanItemType, $label, $targetButtonClass, $url, $targetStatus)
 
 registerKanbanColumnAcceptActionScript ($label, $targetStatus, $url)
 
 registerKanbanColumnRejectActionScript ($label, $targetStatus, $url)
 
 renderTaskCardDetailsContent (Task $task, $row)
 
 resolveAndRenderTaskCardDetailsDueDateContent (Task $task)
 
 resolveAndRenderTaskCardDetailsStatusContent (Task $task, $row)
 
 isMaxCountCheckRequired ()
 
- Protected Member Functions inherited from KanbanBoardExtendedGridView
 getOffset ()
 
 resolveGroupByColumnHeaderLabel ($value)
 
 resolveDataIntoKanbanColumns ()
 
 makeColumnsDataAndStructure ()
 
 registerScripts ()
 
 getAjaxForDroppedAttribute ()
 
 getUpdateAttributeValueUrl ()
 
 renderCardDetailsContent ($row)
 
 renderCardDataContent (array $cardData, RedBeanModel $model, $row)
 
 renderUlTagForKanbanColumn ($listItems, $attributeValue=null)
 
 getRowClassForKanbanColumn ()
 
 createRowForKanbanColumn ($row)
 
 getListItemsByAttributeValueAndData ($attributeValueAndData)
 
 wrapCardDetailsContent ($row)
 
 isMaxCountCheckRequired ()
 
- Protected Member Functions inherited from StackedExtendedGridView
 renderRowAsTableCellOrDiv ($row, $type)
 
- Protected Member Functions inherited from ExtendedGridView
 renderTableColumnGroup ()
 

Additional Inherited Members

- Public Member Functions inherited from KanbanBoardExtendedGridView
 init ()
 
 renderTableBody ()
 
 renderOverMaxCountText ($totalCount)
 
- Public Member Functions inherited from StackedExtendedGridView
 renderItems ()
 
 renderTableBody ()
 
 renderTableRow ($row)
 
- Public Member Functions inherited from ExtendedGridView
 init ()
 
 renderTopPager ()
 
 renderBottomPager ()
 
 renderPager ()
 
 renderSummary ()
 
 renderEmptyText ()
 
 renderKeys ()
 
 renderTableHeader ()
 
- Static Protected Member Functions inherited from StackedExtendedGridView
static renderRowTypeForOpenTag ($type)
 
static renderRowTypeForCloseTag ($type)
 

Detailed Description

Extends the KanbanBoardExtendedGridView to provide a 'stacked' Kanban Board format for viewing lists of data.

Definition at line 40 of file TaskKanbanBoardExtendedGridView.php.

Member Function Documentation

resolveDataIntoKanbanColumns ( )
protected

Heals sortOrder for kanbanItems if they are wrong. It can be wrong if tasks are created from workflow actions because during that task creation, it doesn't know what project or other activityItem it is part of. This will at least heal the sortOrder for display. Then upon subsequent saves of the board, it will properly set the sortOrder in the database

Returns
array

Definition at line 55 of file TaskKanbanBoardExtendedGridView.php.

resolveOrderByType (   $columnsData,
  $type 
)
protected

Resolve order by type

Parameters
array$columnsData
int$type
Returns
int

Definition at line 110 of file TaskKanbanBoardExtendedGridView.php.

makeColumnsDataAndStructure ( )
protected
Returns
array

Definition at line 122 of file TaskKanbanBoardExtendedGridView.php.

renderUlTagForKanbanColumn (   $listItems,
  $attributeValue = null 
)
protected

Creates ul tag for kanban column

Parameters
array$listItems
string$attributeValue
Returns
string

Definition at line 138 of file TaskKanbanBoardExtendedGridView.php.

registerScripts ( )
protected

Override script registration

Definition at line 147 of file TaskKanbanBoardExtendedGridView.php.

registerKanbanColumnScripts ( )
protected

Register Kanban Column Scripts

Definition at line 155 of file TaskKanbanBoardExtendedGridView.php.

static registerKanbanColumnSortableScript ( )
static

Registers kanban column sortable script. Also called to use on refresh of kanban board

Returns
string

Definition at line 173 of file TaskKanbanBoardExtendedGridView.php.

registerKanbanColumnStartActionScript (   $sourceButtonClass,
  $label,
  $targetStatus,
  $url 
)
protected

Registers kanban column start action script

Parameters
string$label
int$targetStatus
string$url

Definition at line 185 of file TaskKanbanBoardExtendedGridView.php.

registerKanbanColumnFinishActionScript (   $labelAccept,
  $labelReject,
  $targetStatus,
  $url 
)
protected

Registers kanban column finish action script

Parameters
string$label
int$targetStatus
string$url

Definition at line 198 of file TaskKanbanBoardExtendedGridView.php.

getRowClassForTaskKanbanColumn (   $data)
protected
Returns
string

Definition at line 243 of file TaskKanbanBoardExtendedGridView.php.

createTaskItemForKanbanColumn (   $data,
  $row 
)
protected

Creates task item for kanban column

Parameters
array$data
int$row
Returns
string

Definition at line 261 of file TaskKanbanBoardExtendedGridView.php.

getListItemsByAttributeValueAndData (   $attributeValueAndData)
protected

Get list items by attribute value and data

Parameters
array$attributeValueAndData
Returns
array

Definition at line 274 of file TaskKanbanBoardExtendedGridView.php.

registerButtonActionScript (   $sourceActionButtonClass,
  $targetKanbanItemType,
  $label,
  $targetButtonClass,
  $url,
  $targetStatus 
)
protected

Register button action script

Parameters
string$sourceActionButtonClass
int$targetKanbanItemType
string$label
string$targetButtonClass
string$url
int$targetStatus
Returns
string

Definition at line 295 of file TaskKanbanBoardExtendedGridView.php.

registerKanbanColumnAcceptActionScript (   $label,
  $targetStatus,
  $url 
)
protected

Register kanban column accept action script

Parameters
string$label
int$targetStatus
string$url

Definition at line 380 of file TaskKanbanBoardExtendedGridView.php.

registerKanbanColumnRejectActionScript (   $label,
  $targetStatus,
  $url 
)
protected

Register kanban column reject action script

Parameters
string$label
int$targetStatus
string$url

Definition at line 393 of file TaskKanbanBoardExtendedGridView.php.

renderTaskCardDetailsContent ( Task  $task,
  $row 
)
protected
Parameters
Task$task
$row
Returns
string

Definition at line 405 of file TaskKanbanBoardExtendedGridView.php.

isMaxCountCheckRequired ( )
protected

Checks if max count has to be validated in the kanban view

Returns
boolean

Definition at line 466 of file TaskKanbanBoardExtendedGridView.php.

static getMaxCount ( )
static
Returns
int

Definition at line 474 of file TaskKanbanBoardExtendedGridView.php.


The documentation for this class was generated from the following file:
Generated on Sat Mar 28 2020 07:11:20