<?php

class Pampa_View_Helper_ThumbUrl extends Zend_View_Helper_Abstract {
  
  /**
   * return the url for the thumb file with the correct params
   * @param String $image
   * @param Number $width
   * @param Number $height
   * @param String $type
   * @param Number $quality
   * @return string 
   */
  public function thumbUrl($image, $width = 100, $height = 100, $type = 'C', $quality = 90){
    $url = BASE_URL.'image.php/';
    
    $url .= $image;
    $url .= "*".$width;
    $url .= "*".$height;
    $url .= "*".$type;
    $url .= "*".$quality;
    
    return $url;
  }
  
}