class RealisticDummyContentImageField in Realistic Dummy Content 7
Field modifier for image fields.
Hierarchy
Expanded class hierarchy of RealisticDummyContentImageField
2 string references to 'RealisticDummyContentImageField'
File
- api/
includes/ RealisticDummyContentImageField.inc, line 12 - Define RealisticDummyContentImageField autoload class.
View source
class RealisticDummyContentImageField extends RealisticDummyContentField {
/**
* {@inheritdoc}
*/
function GetExtensions() {
return $this
->GetImageExtensions();
}
/**
* {@inheritdoc}
*/
function ValueFromFile_($file) {
if (!$file
->Value()) {
return NULL;
}
$return = NULL;
$file = $this
->ImageSave($file);
if ($file) {
$return = array(
LANGUAGE_NONE => array(
(array) $file,
),
);
}
return $return;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RealisticDummyContentAttribute:: |
private | property | The entity is set on construction and is a subclass of RealisticDummyContentEntityBase. It contains information about the entity to which this field instance is attached. | |
RealisticDummyContentAttribute:: |
private | property | The name of this attribuet, for example title, picture, field_image... | |
RealisticDummyContentAttribute:: |
function | Changes this attribute by looking for data in files. | ||
RealisticDummyContentAttribute:: |
function | Given candidate files, change the value of this attribute based on one of them. | ||
RealisticDummyContentAttribute:: |
function | Returns the appropriate environment, real or testing. | ||
RealisticDummyContentAttribute:: |
function | Return a file object. | ||
RealisticDummyContentAttribute:: |
function | Gets the bundle of the associated entity. | ||
RealisticDummyContentAttribute:: |
function | Get all candidate files for a given field for this entity. | ||
RealisticDummyContentAttribute:: |
function | Getter for $this->entity | ||
RealisticDummyContentAttribute:: |
function | Get the entity type of the associated entity. | ||
RealisticDummyContentAttribute:: |
function | Return acceptable image file extensions. | ||
RealisticDummyContentAttribute:: |
function | Getter for $this->name | ||
RealisticDummyContentAttribute:: |
function | Return acceptable text file extensions. | ||
RealisticDummyContentAttribute:: |
function | Gets the UID of the associated entity. | ||
RealisticDummyContentAttribute:: |
function | Return an image file object if possible. | ||
RealisticDummyContentAttribute:: |
function | Returns a pseudo-random number. | ||
RealisticDummyContentAttribute:: |
function | Given a RealisticDummyContentFileGroup object, get structured property if extentions ok. | ||
RealisticDummyContentAttribute:: |
function | Given a list of files, return a value from one of them. | ||
RealisticDummyContentAttribute:: |
function | Constructor. | ||
RealisticDummyContentField:: |
function |
Returns the type of this attribute. Overrides RealisticDummyContentAttribute:: |
||
RealisticDummyContentImageField:: |
function |
Get acceptable file extensions which contain data for this attribute. Overrides RealisticDummyContentAttribute:: |
||
RealisticDummyContentImageField:: |
function |
Given a RealisticDummyContentFileGroup object, get a structured property Overrides RealisticDummyContentAttribute:: |