From b5f4d3fd71836a4efea6079440776b70d55fa393 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Tue, 24 Dec 2024 03:23:58 +0000 Subject: [PATCH] * [story#69412,0.5h] add getDocBlock. --- module/doc/model.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module/doc/model.php b/module/doc/model.php index d10cf76db8..eadca09274 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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(); + } }