Source for file Properties.php

Documentation is available at Properties.php

  1. <?php
  2. /* -------------------------------------------------------------------------- */
  3. /* Module      : Properties                                                   */
  4. /*                                                                            */
  5. /* Version History :                                                          */
  6. /*                                                                            */
  7. /* Date        Vsn     Author          Description                            */
  8. /* -------------------------------------------------------------------------- */
  9. /* 05/02/09    1.0     S.Lindo         Initial version.                       */
  10. /* -------------------------------------------------------------------------- */
  11. /**
  12.  * Format all requested properties for display.
  13.  * 
  14.  * @package Default
  15.  */
  16. {
  17.     /**
  18.      * @return string Required properties ready to display
  19.      */
  20.     public function properties($in_properties)
  21.     {
  22.         $properties null;
  23.  
  24.         $properties "\n<div id=\"thumbnails\">";
  25.         foreach ($in_properties as $property_id => $property)
  26.         {
  27.             $properties .= "\n<div id=\"single_property\">"
  28.                          . "<a href=\"/properties/property/?property_id=$property_id\">"
  29.                          . "<img alt=\"".$property['description'"\""
  30.                          . " src=\"/images/".$property['description'].".jpg\">"
  31.                          . "</a>"
  32.                          . "<h3>".$property['description'"</h3>"
  33.                          . "<br />Click the image for full details</div>";
  34.         }
  35.         $properties .= "</div>\n";
  36.  
  37.         return $properties;
  38.     }
  39.  
  40. }

Documentation generated on Fri, 27 Mar 2009 13:48:40 +0000 by phpDocumentor 1.4.1