mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 15:59:23 +01:00
update docu to better run trough phpdocumentor
This commit is contained in:
parent
b78613e0f7
commit
71743a2260
@ -45,20 +45,6 @@
|
||||
'bool' => 'boolean',
|
||||
// 'abstime' => 'abstime (mysql:timestamp)',
|
||||
);
|
||||
var $setup_header = '<?php
|
||||
/**************************************************************************\\
|
||||
* eGroupWare - Setup *
|
||||
* http://www.eGroupWare.org *
|
||||
* Created by eTemplates DB-Tools written by 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. *
|
||||
\\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
';
|
||||
|
||||
/**
|
||||
* constructor of class
|
||||
@ -673,7 +659,7 @@
|
||||
}
|
||||
if (!$header)
|
||||
{
|
||||
$header = $this->setup_header . "\n\n";
|
||||
$header = $this->setup_header($this->app) . "\n\n";
|
||||
}
|
||||
if (!is_writeable(EGW_SERVER_ROOT."/$app/setup") || !($f = fopen($file,'w')))
|
||||
{
|
||||
@ -842,7 +828,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$update = $this->setup_header;
|
||||
$update = $this->setup_header($this->app);
|
||||
}
|
||||
$update .= "
|
||||
\$test[] = '$old_version';
|
||||
@ -1064,4 +1050,25 @@
|
||||
|
||||
return $a == $b;
|
||||
}
|
||||
|
||||
/**
|
||||
* creates file header
|
||||
*
|
||||
*/
|
||||
function setup_header($app)
|
||||
{
|
||||
return '<?php
|
||||
|
||||
/**
|
||||
* eGroupWare - Setup
|
||||
* http://www.egroupware.org
|
||||
* Created by eTemplates DB-Tools written by ralfbecker@outdoor-training.de
|
||||
*
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package '. $app. '
|
||||
* @subpackage setup
|
||||
* @version $Id$
|
||||
*/
|
||||
';
|
||||
}
|
||||
}
|
@ -867,8 +867,17 @@
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
fwrite($f,"<?php\n// eTemplates for Application '$app', generated by soetemplate::dump4setup() ".date('Y-m-d H:i')."\n\n".
|
||||
'/* $'.'Id$ */'."\n\n\$templ_version=1;\n\n");
|
||||
fwrite($f,'<?php
|
||||
/**
|
||||
* eGroupWare - eTemplates for Application '. $app. '
|
||||
* http://www.egroupware.org
|
||||
* generated by soetemplate::dump4setup() '.date('Y-m-d H:i'). '
|
||||
*
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package '. $app. '
|
||||
* @subpackage setup
|
||||
* @version $Id$
|
||||
*/'."\n\n\$templ_version=1;\n\n");
|
||||
|
||||
for ($n = 0; $this->db->next_record(); ++$n)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user