* add story files and comments for task view.
This commit is contained in:
@@ -1112,6 +1112,22 @@ class taskModel extends model
|
||||
return $task;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get story comments.
|
||||
*
|
||||
* @param int $storyID
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getStoryComments($storyID)
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_ACTION)
|
||||
->where('objectType')->eq('story')
|
||||
->andWhere('objectID')->eq($storyID)
|
||||
->andWhere('comment')->ne('')
|
||||
->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge the default chart settings and the settings of current chart.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user