silverstripe-framework/forms/ImageField.php
2009-05-17 22:06:59 +00:00

25 lines
590 B
PHP
Executable File

<?php
/**
* A field that allows you to attach an image to a record from within a iframe - designed for use in AJAX forms where it
* is not possible to use {@link SimpleImageField}.
*
* @package forms
* @subpackage fields-files
*/
class ImageField extends FileIFrameField {
/**
* @return SimpleImageField_Disabled
*/
public function performReadonlyTransformation() {
return new SimpleImageField_Disabled($this->name, $this->title, $this->value, $this->form);
}
/**
* @return string
*/
public function FileTypeName() {
return _t('ImageField.IMAGE', 'Image');
}
}