update docu to better run trough phpdocumentor

This commit is contained in:
Cornelius Weiß 2006-04-21 10:31:06 +00:00
parent b78613e0f7
commit 71743a2260
2 changed files with 34 additions and 18 deletions

View File

@ -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$
*/
';
}
}

View File

@ -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)
{