/**
  * Renders task check list items
  * @return string
  */
 protected function renderTaskCheckListItems()
 {
     $getParams = array('relatedModelId' => $this->model->id, 'relatedModelClassName' => get_class($this->model), 'relatedModelRelationName' => 'checkListItems');
     $taskCheckListItem = TaskCheckListItem::getByTask($this->model->id);
     $view = new TaskCheckListItemsForTaskView('taskCheckItems', 'tasks', $taskCheckListItem, $this->model, $this->form, $getParams);
     $content = $view->render();
     return $content;
 }
 /**
  * Get check item list for the task using ajax
  * @param string $uniquePageId
  */
 public function actionAjaxCheckItemListForRelatedTaskModel($uniquePageId = null)
 {
     $getData = GetUtil::getData();
     $taskId = ArrayUtil::getArrayValue($getData, 'relatedModelId');
     $taskCheckListItem = TaskCheckListItem::getByTask((int) $taskId);
     $getParams = array('uniquePageId' => $uniquePageId, 'relatedModelId' => $taskId, 'relatedModelClassName' => 'Task', 'relatedModelRelationName' => 'checkListItems');
     $task = Task::getById((int) $taskId);
     $view = new TaskCheckListItemsForTaskView('taskCheckItems', 'tasks', $taskCheckListItem, $task, null, $getParams);
     $content = $view->render();
     Yii::app()->getClientScript()->setToAjaxMode();
     Yii::app()->getClientScript()->render($content);
     echo $content;
 }