From 2e033518d0a52be1fa57f0526b4e64aae07cf2e1 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Mon, 28 Oct 2024 16:16:14 +0800 Subject: [PATCH] * [task#131071] add checkEmptyOfMulticolumn function for thinkmodel widget. --- lib/zin/wg/thinkmodel/v1.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/zin/wg/thinkmodel/v1.php b/lib/zin/wg/thinkmodel/v1.php index e9691a6de3..d1cd173574 100644 --- a/lib/zin/wg/thinkmodel/v1.php +++ b/lib/zin/wg/thinkmodel/v1.php @@ -78,6 +78,15 @@ class thinkModel extends wg return true; } + protected function checkEmptyOfMulticolumn(object $data): bool + { + foreach($data as $key => $item) + { + if(!$this->existEmptyCol($item)) return false; + } + return true; + } + protected function buildResultCard(array $steps, int $key, bool $isPosition = false): array { $questionList = array();