[geeklog-cvs] geeklog: cleaned up a couple phpdoc tags

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Apr 1 16:22:11 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/81f6adbf7687
changeset: 6887:81f6adbf7687
user:      jcarlson <justin.carlson at gmail.com>
date:      Wed Apr 01 15:21:52 2009 -0500
description:
cleaned up a couple phpdoc tags

diffstat:

1 file changed, 17 insertions(+), 12 deletions(-)
system/classes/unpacker.class.php |   29 +++++++++++++++++------------

diffs (87 lines):

diff -r 08364e03181e -r 81f6adbf7687 system/classes/unpacker.class.php
--- a/system/classes/unpacker.class.php	Wed Apr 01 00:39:22 2009 +0100
+++ b/system/classes/unpacker.class.php	Wed Apr 01 15:21:52 2009 -0500
@@ -75,7 +75,7 @@
      * Constructor
      * 
      * @param string $file full path to archive
-     * @param string $optional_type mime type ( application/zip, /tar, etc )
+     * @param string $mime_type mime type ( optional, application/zip, /tar, etc )
      * @return bool $success result of loading archive passed
      */
     function unpacker($file, $mime_type = null) {
@@ -232,7 +232,7 @@
     /**
      * return contents of archive (wrapper)
      * 
-     * @return array(array('filename','size','etc')) archive contents
+     * @return array array(array('filename','size','etc')) archive contents
      */
     function getlist() {
 
@@ -255,7 +255,7 @@
     /**
      * return contents of zip archive
      * 
-     * @return array(array('filename','size','etc')) archive contents
+     * @return array array(array('filename','size','etc')) archive contents
      */
     function list_zip() {
 
@@ -298,7 +298,7 @@
     /**
      * return contents of tar archive
      * 
-     * @return array(array('filename','size','etc')) archive contents
+     * @return array array(array('filename','size','etc')) archive contents
      */
     function list_tar() {
 
@@ -413,9 +413,7 @@
     /**
      * return the first directory name in the archive 
      * 
-     * @param string $target_path destination 
-     * @param array $item_array array of specific path/file(s)
-     * @return mixed result
+     * @return mixed string directory name, or bool false
      */
     function getdir() {
 
@@ -432,11 +430,9 @@
     /**
      * return the total unpacked size of the archive 
      * 
-     * @param string $target_path destination 
-     * @param array $item_array array of specific path/file(s)
-     * @return bool result
+     * @return mixed (size in bytes or false on error)
      */
-    function getunpackedsize($optional_calibration = null) {
+    function getunpackedsize() {
 
         if (is_null($this->u_size) === false) {
             return $this->u_size;
@@ -457,6 +453,15 @@
         }
     }
 
+     /**
+     * sets an error number and string to report if asked 
+     * acts as a wrapper for return false, to set an error
+     * at the same time
+     * 
+     * @param string $errorno error number ( anything goes )
+     * @param string $error error text ( anything goes ) 
+     * @return bool, always false
+     */
     function setError($errorno, $error) {
 
         $this->errorno = $errorno;
@@ -465,4 +470,4 @@
     }
 
 }
-?>
+?>
\ No newline at end of file



More information about the geeklog-cvs mailing list