public function executeIcon(sfWebRequest $request)
 {
     $class = sfMediaBrowserUtils::getTypeFromExtension(sfMediaBrowserUtils::getExtensionFromFile($this->file_url)) == 'image' ? 'sfMediaBrowserImageObject' : 'sfMediaBrowserFileObject';
     $this->file = new $class($this->file_url);
 }
 public function getType()
 {
     return sfMediaBrowserUtils::getTypeFromExtension($this->getExtension());
 }
 protected function createFileObject($file)
 {
     $class = sfMediaBrowserUtils::getTypeFromExtension(pathinfo($file, PATHINFO_EXTENSION)) == 'image' ? 'sfMediaBrowserImageObject' : 'sfMediaBrowserFileObject';
     return new $class($file);
 }