forked from extern/egroupware
updating version and dependencies for 1.6
This commit is contained in:
parent
d60d8376e1
commit
bb1ed52c7f
@ -99,9 +99,9 @@ class editor
|
||||
'styles' => True,
|
||||
);
|
||||
|
||||
function editor()
|
||||
function __construct()
|
||||
{
|
||||
$this->etemplate =& CreateObject('etemplate.etemplate');
|
||||
$this->etemplate = new etemplate();
|
||||
|
||||
$this->extensions = $GLOBALS['egw']->session->appsession('extensions','etemplate');
|
||||
}
|
||||
|
@ -1,44 +1,43 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Editable Templates *
|
||||
* http://www.egroupware.org *
|
||||
" Written by Ralf Becker <RalfBecker@outdoor-training.de> *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
/**
|
||||
* eGroupWare - EditableTemplates
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @author Ralf Becker <RalfBecker@outdoor-training.de>
|
||||
* @copyright 2002-8 by RalfBecker@outdoor-training.de
|
||||
* @package etemplate
|
||||
* @subpackage setup
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
$setup_info['etemplate']['name'] = 'etemplate';
|
||||
$setup_info['etemplate']['version'] = '1.6';
|
||||
$setup_info['etemplate']['app_order'] = 60; // just behind the developers-tools
|
||||
$setup_info['etemplate']['tables'] = array('egw_etemplate');
|
||||
$setup_info['etemplate']['enable'] = 1;
|
||||
|
||||
$setup_info['etemplate']['name'] = 'etemplate';
|
||||
$setup_info['etemplate']['version'] = '1.5.001';
|
||||
$setup_info['etemplate']['app_order'] = 60; // just behind the developers-tools
|
||||
$setup_info['etemplate']['tables'] = array('egw_etemplate');
|
||||
$setup_info['etemplate']['enable'] = 1;
|
||||
|
||||
$setup_info['etemplate']['author'] =
|
||||
$setup_info['etemplate']['author'] =
|
||||
$setup_info['etemplate']['maintainer'] = array(
|
||||
'name' => 'Ralf Becker',
|
||||
'email' => 'ralfbecker@outdoor-training.de'
|
||||
);
|
||||
$setup_info['etemplate']['license'] = 'GPL';
|
||||
$setup_info['etemplate']['description'] =
|
||||
);
|
||||
$setup_info['etemplate']['license'] = 'GPL';
|
||||
$setup_info['etemplate']['description'] =
|
||||
'<b>eTemplates</b> are a new widget-based template system for eGroupWare with an
|
||||
interactive editor and a database table-editor (creates tables_current.inc.php and
|
||||
updates automaticaly tables_update.inc.php).';
|
||||
$setup_info['etemplate']['note'] =
|
||||
$setup_info['etemplate']['note'] =
|
||||
'For <b>more information</b> check out the <a href="etemplate/doc/etemplate.html" target="_blank">Tutorial</a>,
|
||||
the <a href="etemplate/doc/referenz.html" target="_blank">Referenz Documentation</a>
|
||||
or the <a href="http://www.egroupware.org/wiki/etemplate" target="_blank">eTemplate page in our Wiki</a>.';
|
||||
|
||||
/* The hooks this app includes, needed for hooks registration */
|
||||
$setup_info['etemplate']['hooks'][] = 'sidebox_menu';
|
||||
/* The hooks this app includes, needed for hooks registration */
|
||||
$setup_info['etemplate']['hooks'][] = 'sidebox_menu';
|
||||
|
||||
/* Dependencies for this app to work */
|
||||
$setup_info['etemplate']['depends'][] = array(
|
||||
/* Dependencies for this app to work */
|
||||
$setup_info['etemplate']['depends'][] = array(
|
||||
'appname' => 'phpgwapi',
|
||||
'versions' => Array('1.3','1.4','1.5')
|
||||
);
|
||||
'versions' => Array('1.5','1.6','1.7')
|
||||
);
|
||||
|
||||
|
@ -1,18 +1,17 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Editable Templates *
|
||||
* http://www.egroupware.org *
|
||||
" Written by Ralf Becker <RalfBecker@outdoor-training.de> *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
/**
|
||||
* eTemplates - DB schema
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @package etemplate
|
||||
* @subpackage setup
|
||||
* @copyright (c) 200s-8 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_baseline = array(
|
||||
$phpgw_baseline = array(
|
||||
'egw_etemplate' => array(
|
||||
'fd' => array(
|
||||
'et_name' => array('type' => 'varchar','precision' => '80','nullable' => False),
|
||||
@ -30,4 +29,4 @@
|
||||
'ix' => array(),
|
||||
'uc' => array()
|
||||
)
|
||||
);
|
||||
);
|
||||
|
@ -1,19 +1,18 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Setup *
|
||||
* http://www.egroupware.org *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
/**
|
||||
* eTemplates - table update scripts
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @package etemplate
|
||||
* @subpackage setup
|
||||
* @copyright (c) 200s-8 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$test[] = '0.9.13.001';
|
||||
function etemplate_upgrade0_9_13_001()
|
||||
{
|
||||
function etemplate_upgrade0_9_13_001()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_data',array(
|
||||
'type' => 'text',
|
||||
'nullable' => True
|
||||
@ -36,12 +35,11 @@
|
||||
|
||||
$GLOBALS['setup_info']['etemplate']['currentver'] = '0.9.15.001';
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$test[] = '0.9.15.001';
|
||||
function etemplate_upgrade0_9_15_001()
|
||||
{
|
||||
function etemplate_upgrade0_9_15_001()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('phpgw_etemplate','et_name',array(
|
||||
'type' => 'varchar',
|
||||
'precision' => '80',
|
||||
@ -73,30 +71,27 @@
|
||||
|
||||
$GLOBALS['setup_info']['etemplate']['currentver'] = '0.9.15.002';
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$test[] = '0.9.15.002';
|
||||
function etemplate_upgrade0_9_15_002()
|
||||
{
|
||||
function etemplate_upgrade0_9_15_002()
|
||||
{
|
||||
$GLOBALS['setup_info']['etemplate']['currentver'] = '1.0.0';
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$test[] = '1.0.0';
|
||||
function etemplate_upgrade1_0_0()
|
||||
{
|
||||
function etemplate_upgrade1_0_0()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->RenameTable('phpgw_etemplate','egw_etemplate');
|
||||
|
||||
$GLOBALS['setup_info']['etemplate']['currentver'] = '1.2';
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$test[] = '1.2';
|
||||
function etemplate_upgrade1_2()
|
||||
{
|
||||
function etemplate_upgrade1_2()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_etemplate','et_modified',array(
|
||||
'type' => 'int',
|
||||
'precision' => '8',
|
||||
@ -105,16 +100,21 @@
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'] = '1.4';
|
||||
}
|
||||
}
|
||||
|
||||
$test[] = '1.4';
|
||||
function etemplate_upgrade1_4()
|
||||
{
|
||||
|
||||
function etemplate_upgrade1_4()
|
||||
{
|
||||
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_etemplate','et_data',array(
|
||||
'type' => 'longtext',
|
||||
'nullable' => True,
|
||||
));
|
||||
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'] = '1.5.001';
|
||||
}
|
||||
?>
|
||||
}
|
||||
|
||||
|
||||
function etemplate_upgrade1_5_001()
|
||||
{
|
||||
return $GLOBALS['setup_info']['etemplate']['currentver'] = '1.6';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user