4 * Let user select where he wants to store uploaded files
6 * @http://www.projectpier.org/
8 class FileStorageConfigHandler
extends ConfigHandler
{
13 * @param string $control_name
16 function render($control_name) {
19 $option_attributes = $this->getValue() == FILE_STORAGE_FILE_SYSTEM ?
array('selected' => 'selected') : null;
20 $options[] = option_tag(lang('file storage file system'), FILE_STORAGE_FILE_SYSTEM
, $option_attributes);
22 $option_attributes = $this->getValue() == FILE_STORAGE_MYSQL ?
array('selected' => 'selected') : null;
23 $options[] = option_tag(lang('file storage mysql'), FILE_STORAGE_MYSQL
, $option_attributes);
25 return select_box($control_name, $options);
28 } // FileStorageConfigHandler