* add story files and comments for task view.

This commit is contained in:
chenfeiCF
2016-03-07 13:16:51 +08:00
parent fb65e3660b
commit d97d22c0db
5 changed files with 50 additions and 2 deletions
+16
View File
@@ -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.
*