[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17230] prepare for custom code outside tree
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [17230] prepare for custom code outside tree |
Date: |
Wed, 1 Nov 2017 14:51:48 -0400 (EDT) |
Revision: 17230
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17230
Author: sigurdne
Date: 2017-11-01 14:51:48 -0400 (Wed, 01 Nov 2017)
Log Message:
-----------
prepare for custom code outside tree
Added Paths:
-----------
thirdparty/PE_custom/BK_EBF/property/inc/cron/default/update_phpgw.php
Copied: thirdparty/PE_custom/BK_EBF/property/inc/cron/default/update_phpgw.php
(from rev 17218, trunk/property/inc/cron/default/update_phpgw.php)
===================================================================
--- thirdparty/PE_custom/BK_EBF/property/inc/cron/default/update_phpgw.php
(rev 0)
+++ thirdparty/PE_custom/BK_EBF/property/inc/cron/default/update_phpgw.php
2017-11-01 18:51:48 UTC (rev 17230)
@@ -0,0 +1,70 @@
+<?php
+ /**
+ * phpGroupWare - property: a Facilities Management System.
+ *
+ * @author Sigurd Nes <address@hidden>
+ * @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
+ * @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
+ * @package property
+ * @subpackage custom
+ * @version $Id$
+ */
+ /**
+ * Description
+ * usage:
+ * @package property
+ */
+ include_class('property', 'cron_parent', 'inc/cron/');
+
+ class update_phpgw extends property_cron_parent
+ {
+
+ function __construct()
+ {
+ parent::__construct();
+
+ $this->function_name = get_class($this);
+ $this->sub_location = lang('Async service');
+ $this->function_msg = 'Update all installed apps of
phpgw';
+
+ $this->bocommon = CreateObject('property.bocommon');
+ }
+
+ function execute()
+ {
+ $this->perform_update_db();
+ }
+
+ function perform_update_db()
+ {
+ $GLOBALS['phpgw_setup'] =
CreateObject('phpgwapi.setup', true, true);
+ $setup_info =
$GLOBALS['phpgw_setup']->detection->get_versions();
+ $GLOBALS['phpgw_setup']->db =
CreateObject('phpgwapi.db');
+ $GLOBALS['phpgw_info']['setup']['stage']['db'] =
$GLOBALS['phpgw_setup']->detection->check_db();
+ $setup_info =
$GLOBALS['phpgw_setup']->detection->get_db_versions($setup_info);
+ $setup_info =
$GLOBALS['phpgw_setup']->detection->compare_versions($setup_info);
+ $setup_info =
$GLOBALS['phpgw_setup']->detection->check_depends($setup_info);
+ ksort($setup_info);
+ $clear_cache = '';
+ foreach ($setup_info as $app => $appinfo)
+ {
+ if (isset($appinfo['status']) &&
$appinfo['status'] == 'U' && isset($appinfo['currentver']) &&
$appinfo['currentver'])
+ {
+ $terror = array();
+ $terror[] =
$setup_info[$appinfo['name']];
+
$GLOBALS['phpgw_setup']->process->upgrade($terror, false);
+
$GLOBALS['phpgw_setup']->process->upgrade_langs($terror, false);
+ $this->receipt['message'][] =
array('msg' => 'Upgraded application: ' . $appinfo['name']);
+ if ($appinfo['name'] == 'property')
+ {
+ $clear_cache = true;
+ }
+ }
+ }
+ if ($clear_cache)
+ {
+ $this->db->query('DELETE FROM fm_cache');
+ }
+ }
+ }
\ No newline at end of file
Property changes on:
thirdparty/PE_custom/BK_EBF/property/inc/cron/default/update_phpgw.php
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Revision Author Id
\ No newline at end of property
Added: svn:mergeinfo
## -0,0 +1,3 ##
+/branches/dev-syncromind/property/inc/cron/default/update_phpgw.php:13653
+/branches/dev-syncromind-2/property/inc/cron/default/update_phpgw.php:14933-16846
+/branches/stavangerkommune/property/inc/cron/default/update_phpgw.php:12743-12875,12986
\ No newline at end of property
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17230] prepare for custom code outside tree,
sigurdne <=