function ViewImageDownloadField($field, $container, $pageobject) { parent::ViewFileField($field, $container, $pageobject); $this->showThumbnails = $container->pSet->showThumbnail($this->field); $this->setOfThumbnails = $container->pSet->showListOfThumbnails($this->field); $this->useAbsolutePath = $container->pSet->isAbsolute($this->field); $this->imageWidth = $container->pSet->getImageWidth($this->field); $this->imageHeight = $container->pSet->getImageHeight($this->field); if ($this->showThumbnails) { $this->thumbWidth = $container->pSet->getThumbnailWidth($this->field); $this->thumbHeight = $container->pSet->getThumbnailHeight($this->field); } }
/** * addJSFiles * Add control JS files to page object */ function ViewFileDownloadField($field, $container, $pageobject) { parent::ViewFileField($field, $container, $pageobject); $this->sizeUnits = array("KB", "MB", "GB", "TB"); }