zen.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The zen file of store module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  6. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Ke Zhao<zhaoke@easycorp.ltd>
  8. * @package store
  9. * @link https://www.zentao.net
  10. */
  11. class storeZen extends store
  12. {
  13. /**
  14. * 获取已安装的所有应用。
  15. * Get all installed apps.
  16. *
  17. * @param form $formData
  18. * @param bool $isPipelineServer
  19. * @access protected
  20. * @return object|false
  21. */
  22. protected function getInstalledApps()
  23. {
  24. $installedApps = array();
  25. $space = $this->loadModel('space')->defaultSpace($this->app->user->account);
  26. $instances = $this->space->getSpaceInstancesAppIDs($space->id);
  27. foreach($instances as $instance) $installedApps[] = $instance->appID;
  28. return $installedApps;
  29. }
  30. }