From 71743a2260e7425feedae3bbfbb8931980f221ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Fri, 21 Apr 2006 10:31:06 +0000 Subject: [PATCH] update docu to better run trough phpdocumentor --- etemplate/inc/class.db_tools.inc.php | 39 +++++++++++++++---------- etemplate/inc/class.soetemplate.inc.php | 13 +++++++-- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/etemplate/inc/class.db_tools.inc.php b/etemplate/inc/class.db_tools.inc.php index b50ed35d73..03fb44553f 100644 --- a/etemplate/inc/class.db_tools.inc.php +++ b/etemplate/inc/class.db_tools.inc.php @@ -45,20 +45,6 @@ 'bool' => 'boolean', // 'abstime' => 'abstime (mysql:timestamp)', ); - var $setup_header = '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 'db->next_record(); ++$n) {