From: Andreas Unterkircher Date: Sat, 12 Apr 2008 10:57:55 +0000 (+0200) Subject: further pimped code for phpDocumentor X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=7688cbcdf666c2c538bc35cbc4efbe929a8fa9da;hp=2765fc086522b5fb9f209bdfe266e577fc65ca84 further pimped code for phpDocumentor Signed-off-by: Andreas Unterkircher --- diff --git a/phpfspot_db.php b/phpfspot_db.php index 83376ad..90fdb8c 100644 --- a/phpfspot_db.php +++ b/phpfspot_db.php @@ -42,7 +42,9 @@ class PHPFSPOT_DB { */ public function __construct($parent, $db_path) { - $this->parent = $parent; + global $phpfspot; + + $this->parent = $phpfspot; $this->db_path = $db_path; /* We are starting disconnected */ diff --git a/phpfspot_img.php b/phpfspot_img.php index 8379b83..f298b00 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -34,8 +34,8 @@ require_once "phpfspot.class.php"; */ class PHPFSPOT_IMG { - var $db; - var $parent; + private $db; + private $parent; /** * PHPFSPOT_IMG class constructor @@ -62,6 +62,8 @@ class PHPFSPOT_IMG { * the client - in the specified width. it also try's * to create on-the-fly missing thumbnails via PHPFSPOT * gen_thumbs function. + * @param integer $idx + * @param integer $width */ public function show($idx, $width = 0) { @@ -126,7 +128,7 @@ class PHPFSPOT_IMG { } // show() -} +} // PHPFSPOT_IMG() if(isset($_GET['idx']) && (is_numeric($_GET['idx']) || $_GET['idx'] == 'rand')) { diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index e8bb48a..f6d3ce8 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -22,8 +22,17 @@ * ***************************************************************************/ +/** + * PHPFSPOT_TMPL class + * + * Extends Smarty base class with some additional functions + * @package phpfspot + */ class PHPFSPOT_TMPL extends Smarty { + /** + * class constructor + */ public function __construct() { global $phpfspot; @@ -46,12 +55,18 @@ class PHPFSPOT_TMPL extends Smarty { } // __construct() + /** + * show template + * + * outputs the requested template + * @param string $template + */ public function show($template) { $this->display($template); } // show() -} +} // PHPFSPOT_TMPL() ?>