+ storyTao: add a method to fetch base info of a story.

This commit is contained in:
liugang
2023-08-25 16:30:48 +08:00
parent b79a54dd8a
commit ee066dad12
+13
View File
@@ -11,6 +11,19 @@ declare(strict_types=1);
*/
class storyTao extends storyModel
{
/**
* 获取需求的基础数据。
* Fetch base info of a story.
*
* @param int $storyID
* @access protected
* @return object|false
*/
protected function fetchBaseInfo(int $storyID): object|false
{
return $this->dao->select('*')->from(TABLE_STORY)->where('id')->eq($storyID)->fetch();
}
/**
* 获取项目研发需求关联的用户需求。
* Get project requirements.