issue48, make sure no pending comma is shown at the end of the available-tags
[phpfspot.git] / phpfspot_img.php
index bd811e85ce2d26e6738ed3dec1e9206065631a29..194b534ba63e61d9258ea0a1ce621d35673581f4 100644 (file)
@@ -28,6 +28,9 @@ class PHPFSPOT_IMG {
    var $db;
    var $parent;
 
+   /**
+    * PHPFSPOT_IMG class constructor
+    */
    public function __construct()
    {
       $this->parent = new PHPFSPOT;
@@ -35,11 +38,22 @@ class PHPFSPOT_IMG {
 
    } // __construct()
 
+   /**
+    * PHPFSPOT_IMG class destructor
+    */
    public function __destruct()
    {
 
    } // __desctruct()
 
+   /**
+    * sends the specified image to the browser
+    *
+    * this function will send the specified image to 
+    * the client - in the specified width. it also try's
+    * to create on-the-fly missing thumbnails via PHPFSPOT
+    * gen_thumbs function.
+    */
    public function show($idx, $width = 0)
    {
       $details = $this->parent->get_photo_details($idx);