diff options
author | andi <andi@splitbrain.org> | 2005-01-14 17:40:57 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-01-14 17:40:57 +0100 |
commit | 15fae1076f4439c7cd1302494a48e24f707a3020 (patch) | |
tree | 87c99f0393d0155fbf853f928f7e6d7ee04778bc /inc/io.php | |
parent | 132bdbfe5a8ce4c57b4ae7d4391e99d05f186d43 (diff) | |
download | rpg-15fae1076f4439c7cd1302494a48e24f707a3020.tar.gz rpg-15fae1076f4439c7cd1302494a48e24f707a3020.tar.bz2 |
phpdoc comments
darcs-hash:20050114164057-9977f-e4936fde9037c65c3f32c30b31b2b7df35732f3a.gz
Diffstat (limited to 'inc/io.php')
-rw-r--r-- | inc/io.php | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/inc/io.php b/inc/io.php index c84604a43..dfdbc4e1c 100644 --- a/inc/io.php +++ b/inc/io.php @@ -1,13 +1,19 @@ <? -require_once("inc/common.php"); -require_once("inc/parser.php"); - - +/** + * File IO functions + * + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + * @author Andreas Gohr <andi@splitbrain.org> + */ + require_once("inc/common.php"); + require_once("inc/parser.php"); /** * Returns the parsed text from the given sourcefile. Uses cache * if exists. Creates it if not. + * + * @author Andreas Gohr <andi@splitbrain.org> */ function io_cacheParse($file){ global $conf; @@ -50,8 +56,11 @@ function io_cacheParse($file){ } /** - * Returns content of $file as cleaned string. Uses gzip if extension - * is .gz + * Returns content of $file as cleaned string. + * + * Uses gzip if extension is .gz + * + * @author Andreas Gohr <andi@splitbrain.org> */ function io_readFile($file){ $ret = ''; @@ -66,10 +75,12 @@ function io_readFile($file){ } /** - * Saves $content to $file. Uses gzip if extension - * is .gz + * Saves $content to $file. + * + * Uses gzip if extension is .gz * - * returns true on success + * @author Andreas Gohr <andi@splitbrain.org> + * @return bool true on success */ function io_saveFile($file,$content){ io_makeFileDir($file); @@ -95,6 +106,8 @@ function io_saveFile($file,$content){ /** * Create the directory needed for the given file + * + * @author Andreas Gohr <andi@splitbrain.org> */ function io_makeFileDir($file){ global $conf; @@ -110,7 +123,7 @@ function io_makeFileDir($file){ /** * Creates a directory hierachy. * - * @see http://www.php.net/manual/en/function.mkdir.php + * @link http://www.php.net/manual/en/function.mkdir.php * @author <saint@corenova.com> */ function io_mkdir_p($target){ @@ -123,7 +136,9 @@ function io_mkdir_p($target){ /** * Runs an external command and returns it's output as string - * inspired by a patch by Harry Brueckner <harry_b@eml.cc> + * + * @author Harry Brueckner <harry_b@eml.cc> + * @author Andreas Gohr <andi@splitbrain.org> */ function io_runcmd($cmd){ $fh = popen($cmd, "r"); |