/** * Populate the lists of image sizes with the names of registered image sizes as key, value pair. * * @param array $imgSizeNames * @access public */ function populate($imgSizeNames, $addOriginal = true) { //add the original as an option if ($addOriginal) { array_push($imgSizeNames, 'original'); } $singleSize =& $this->getOptionByName($this->_name . 'View-singleSize'); $singleSize->populate(PhotoQHelper::arrayCombine($imgSizeNames, $imgSizeNames)); $imgLinkSize =& $this->getOptionByName($this->_name . 'View-imgLinkSize'); $imgLinkSize->populate(PhotoQHelper::arrayCombine($imgSizeNames, $imgSizeNames)); $imgLinkTargetSize =& $this->getOptionByName($this->_name . 'View-imgLinkTargetSize'); $imgLinkTargetSize->populate(PhotoQHelper::arrayCombine($imgSizeNames, $imgSizeNames)); }