/** * Draws a list of images * * @return string * */ protected function drawImagesList() { $imageList = new w3sImageListVertical(w3sCommonFunctions::buildFilesList(sfConfig::get('app_images_path'), '', array('gif', 'jpg', 'jpeg', 'png')), basename($this->attributes["fullImagePath"])); return $imageList->renderImageList(); }
/** * Executes delete image action. */ public function executeRefreshImages() { try { $imageList = new w3sImageListVertical(w3sCommonFunctions::buildFilesList(sfConfig::get('app_images_path'), '', array('gif', 'jpg', 'jpeg', 'png')), ''); return $this->renderText($imageList->renderImageList()); } catch (Exception $e) { return $this->renderText('Something was wrong while refreshing images lists.'); } }
/** * Constructor. * * @param array An array with le list of the names of the images to display * @param array This object writes the name of the selected image into an * input box. This is the name of that input bux. * */ public function __construct($imageList, $inputToUpdate) { $this->inputToUpdate = $inputToUpdate; parent::__construct($imageList); }