further pimped code for phpDocumentor
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 12 Apr 2008 10:57:55 +0000 (12:57 +0200)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 12 Apr 2008 10:58:37 +0000 (12:58 +0200)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot_db.php
phpfspot_img.php
phpfspot_tmpl.php

index 83376ad53e779d99dd8067db0f7ec53f2bd5152c..90fdb8cc17392088a0d83763b7508b940dc764ce 100644 (file)
@@ -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 */
index 8379b832c76870f339750c5a354129f591301904..f298b009bfd3366b6535c2efcd57a001f1774ab4 100644 (file)
@@ -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')) {
 
index e8bb48a5a5e7bec4d95765a75934f6eb2562bdcf..f6d3ce85db83e93e4074bb1a949eef59f5e0e20a 100644 (file)
  *
  ***************************************************************************/
 
+/**
+ * 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()
 
 ?>