* [story#69412,0.5h] add getDocBlock.

This commit is contained in:
qixinzhi
2024-12-24 11:41:23 +08:00
committed by 代婷婷
parent 73d536bb8c
commit b5f4d3fd71
+13
View File
@@ -3774,4 +3774,17 @@ class docModel extends model
if(!empty($items)) $this->loadModel('setting')->setItems("{$this->app->user->account}.common.doc", $items);
}
/**
* 获取文档块内容。
* Get doc block content.
*
* @param int $blockID
* @access public
* @return object|bool
*/
public function getDocBlock(int $blockID): object|bool
{
return $this->dao->select('*')->from(TABLE_DOCBLOCK)->where('id')->eq($blockID)->fetch();
}
}