/**
  * Gets the public path for the file associated with the uploadable
  * object.
  *
  * @param object $obj         The object.
  * @param string $mappingName The mapping name.
  * @param string $className   The object's class. Mandatory if $obj can't be used to determine it.
  *
  * @return string The public path.
  */
 public function asset($obj, $mappingName, $resize_name = null, $className = null)
 {
     $url = $this->helper->asset($obj, $mappingName, $className);
     if (is_null($resize_name)) {
         return $url;
     } elseif (!is_null($url)) {
         return ResizedNamer::getUrl($url, $resize_name);
     }
     return '';
 }