* Refactor view and browse of store.

This commit is contained in:
zhaoke
2023-08-03 14:04:05 +08:00
parent 669d4f3b02
commit ba8cd0be5c
21 changed files with 188 additions and 52 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
/**
* The zen file of store module of ZenTaoPMS.
*
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Ke Zhao<zhaoke@easycorp.ltd>
* @package store
* @link https://www.zentao.net
*/
class storeZen extends store
{
/**
* 获取已安装的所有应用。
* Get all installed apps.
*
* @param form $formData
* @param bool $isPipelineServer
* @access protected
* @return object|false
*/
protected function getInstalledApps(): array
{
$installedApps = array();
$space = $this->loadModel('space')->defaultSpace($this->app->user->account);
$instances = $this->space->getSpaceInstances($space->id, 'all');
foreach($instances as $instance) $installedApps[] = $instance->appID;
return $installedApps;
}
}