TasksDefaultController Class Reference

Inheritance diagram for TasksDefaultController:
ActivityModelsDefaultController ActivitiesModuleController ZurmoModuleController ZurmoBaseController Controller

Public Member Functions

 filters ()
 actionList ()
 actionDetails ($id, $redirectUrl=null)
 actionEdit ($id, $redirectUrl=null)
 actionCloseTask ($id)
 actionInlineCreateCommentFromAjax ($id, $uniquePageId)
 actionUpdateDueDateTimeViaAjax ($id, $dateTime)
 actionAddSubscriber ($id)
 actionRemoveSubscriber ($id)
 actionAddKanbanSubscriber ($id)
 actionRemoveKanbanSubscriber ($id)
 actionModalCreateFromRelation ($relationAttributeName=null, $relationModelId=null, $relationModuleId=null)
 actionModalCreate ()
 actionModalSaveFromRelation ($relationAttributeName, $relationModelId, $relationModuleId, $id=null)
 actionModalSave ($id=null)
 actionModalCopy ($id)
 actionModalCopyFromRelation ($id)
 actionModalDetails ($id)
 actionModalEdit ($id)
 actionUpdateAttributeValue ($id, $attribute, $value)
 actionUpdateStatusOnDragInKanbanView ($type)
 actionUpdateStatusInKanbanView ($targetStatus, $taskId, $sourceKanbanType)
 actionDelete ($id, $redirectUrl=null)
 actionExport ()
 actionMassEdit ()
 actionMassEditProgressSave ()
 actionMassDelete ()
 actionMassDeleteProgress ()

Protected Member Functions

 processModalDetails (Task $task)
 processTaskEdit (Task $task)
 processStatusUpdateViaAjax (Task $task, $status, $showCompletionDate=true)
 processSubscriptionRequest ($id)
 processUnsubscriptionRequest ($id)
 attemptToValidateAndSaveFromModalDetails (Task $task)

Static Protected Member Functions

static getZurmoControllerUtil ()
static getSearchFormClassName ()

Detailed Description

Definition at line 37 of file DefaultController.php.


Member Function Documentation

actionDetails ( id,
redirectUrl = null 
)
Parameters:
$id 
null $redirectUrl

Reimplemented from ActivityModelsDefaultController.

Definition at line 98 of file DefaultController.php.

actionEdit ( id,
redirectUrl = null 
)
Parameters:
$id 
null $redirectUrl

Reimplemented from ActivityModelsDefaultController.

Definition at line 130 of file DefaultController.php.

actionCloseTask ( id  ) 

Close task

Parameters:
$id 
Exceptions:
NotSupportedException 

Definition at line 166 of file DefaultController.php.

actionInlineCreateCommentFromAjax ( id,
uniquePageId 
)

Create comment via ajax for task

Parameters:
type $id
string $uniquePageId

Definition at line 188 of file DefaultController.php.

actionUpdateDueDateTimeViaAjax ( id,
dateTime 
)

Update due data time using ajas

Parameters:
int $id
int $dateTime

Definition at line 211 of file DefaultController.php.

actionAddSubscriber ( id  ) 

Add subscriber for task

Parameters:
int $id

Definition at line 224 of file DefaultController.php.

actionRemoveSubscriber ( id  ) 

Remove subscriber for task

Parameters:
int $id

Definition at line 236 of file DefaultController.php.

actionAddKanbanSubscriber ( id  ) 

Add kanban subscriber

Parameters:
string $id

Definition at line 255 of file DefaultController.php.

actionRemoveKanbanSubscriber ( id  ) 

Unsubscribe the user from the task

Parameters:
string $id

Definition at line 267 of file DefaultController.php.

actionModalCreateFromRelation ( relationAttributeName = null,
relationModelId = null,
relationModuleId = null 
)

Create task from related view

Parameters:
null $relationAttributeName
null $relationModelId
null $relationModuleId

Definition at line 288 of file DefaultController.php.

actionModalCreate (  ) 

Create task from top menu

Definition at line 308 of file DefaultController.php.

actionModalSaveFromRelation ( relationAttributeName,
relationModelId,
relationModuleId,
id = null 
)

Saves task in the modal view

Parameters:
string $relationAttributeName
string $relationModelId
string $relationModuleId

Definition at line 320 of file DefaultController.php.

actionModalSave ( id = null  ) 

Saves task in the modal view

Definition at line 353 of file DefaultController.php.

actionModalCopy ( id  ) 

Copy task

Parameters:
string $id

Definition at line 372 of file DefaultController.php.

actionModalCopyFromRelation ( id  ) 

Copy task in the modal view

Parameters:
string $id

Definition at line 382 of file DefaultController.php.

actionModalDetails ( id  ) 

Loads modal view from related view

Parameters:
string $id

Definition at line 397 of file DefaultController.php.

actionModalEdit ( id  ) 

Edit task from related view

Parameters:
string $id

Definition at line 418 of file DefaultController.php.

processTaskEdit ( Task task  )  [protected]

Process Task Edit

Parameters:
Task $task

Definition at line 429 of file DefaultController.php.

actionUpdateAttributeValue ( id,
attribute,
value 
)

Should support in addition to custom field as well

Parameters:
string $id
string $attribute
string $value
Exceptions:
FailedToSaveModelException 

Reimplemented from ZurmoModuleController.

Definition at line 461 of file DefaultController.php.

actionUpdateStatusOnDragInKanbanView ( type  ) 

Update status for the task when dragging in the kanban view

Definition at line 477 of file DefaultController.php.

actionUpdateStatusInKanbanView ( targetStatus,
taskId,
sourceKanbanType 
)

Update task status in kanban view

Parameters:
int $targetStatus
int $taskId

Definition at line 547 of file DefaultController.php.

processStatusUpdateViaAjax ( Task task,
status,
showCompletionDate = true 
) [protected]

Process status update via ajax

Parameters:
int $id
int $status
bool $showCompletionDate whether to show completion date

Definition at line 568 of file DefaultController.php.

processSubscriptionRequest ( id  )  [protected]

Process subscription request for task

Parameters:
int $id

Definition at line 612 of file DefaultController.php.

processUnsubscriptionRequest ( id  )  [protected]

Process unsubscription request for task

Parameters:
int $id
Exceptions:
FailedToSaveModelException 
Returns:
Task $task

Definition at line 632 of file DefaultController.php.

static getZurmoControllerUtil (  )  [static, protected]

Gets zurmo controller util for task

Reimplemented from ActivitiesModuleController.

Definition at line 654 of file DefaultController.php.

actionDelete ( id,
redirectUrl = null 
)
Parameters:
$id 
null $redirectUrl
Exceptions:
FailedToDeleteModelException 

Reimplemented from ActivityModelsDefaultController.

Definition at line 664 of file DefaultController.php.

attemptToValidateAndSaveFromModalDetails ( Task task  )  [protected]

Validates and save from modal details

Parameters:
Task $task

Definition at line 678 of file DefaultController.php.

static getSearchFormClassName (  )  [static, protected]
Returns:
string

Reimplemented from ZurmoModuleController.

Definition at line 698 of file DefaultController.php.

actionMassEdit (  ) 

Action for displaying a mass edit form and also action when that form is first submitted. When the form is submitted, in the event that the quantity of models to update is greater than the pageSize, then once the pageSize quantity has been reached, the user will be redirected to the makeMassEditProgressView. In the mass edit progress view, a javascript refresh will take place that will call a refresh action, usually massEditProgressSave. If there is no need for a progress view, then a flash message will be added and the user will be redirected to the list view for the model. A flash message will appear providing information on the updated records.

See also:
Controler->makeMassEditProgressView
Controller->processMassEdit

Definition at line 717 of file DefaultController.php.

actionMassEditProgressSave (  ) 

Action called in the event that the mass edit quantity is larger than the pageSize. This action is called after the pageSize quantity has been updated and continues to be called until the mass edit action is complete. For example, if there are 20 records to update and the pageSize is 5, then this action will be called 3 times. The first 5 are updated when the actionMassEdit is called upon the initial form submission.

Definition at line 756 of file DefaultController.php.

actionMassDelete (  ) 

Action for displaying a mass delete form and also action when that form is first submitted. When the form is submitted, in the event that the quantity of models to delete is greater than the pageSize, then once the pageSize quantity has been reached, the user will be redirected to the makeMassDeleteProgressView. In the mass delete progress view, a javascript refresh will take place that will call a refresh action, usually makeMassDeleteProgressView. If there is no need for a progress view, then a flash message will be added and the user will be redirected to the list view for the model. A flash message will appear providing information on the delete records.

See also:
Controller->makeMassDeleteProgressView
Controller->processMassDelete

Definition at line 789 of file DefaultController.php.

actionMassDeleteProgress (  ) 

Action called in the event that the mass delete quantity is larger than the pageSize. This action is called after the pageSize quantity has been delted and continues to be called until the mass delete action is complete. For example, if there are 20 records to delete and the pageSize is 5, then this action will be called 3 times. The first 5 are updated when the actionMassDelete is called upon the initial form submission.

Definition at line 834 of file DefaultController.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jul 25 07:10:30 2017