FRED™
3.0
FRED™: Framework for Rapid and Easy Development
|
Public Member Functions | |
clientConfig () | |
check ($value, $index=null) | |
preview ($filename=null, &$count=null, &$rotate=null) | |
Generate a preview. More... | |
rotate ($angle=90, $filename=null) | |
Rotate a file. More... | |
Public Member Functions inherited from Widget | |
__construct ($config=null) | |
update ($config) | |
Update the widget configuration. More... | |
clientConfig () | |
Public configuration. More... | |
caption ($id=null) | |
hint ($id=null) | |
convert ($value) | |
Convert a value from user format to standard, internal format. More... | |
clientConvert ($value) | |
Convert a value from client format to standard, internal format. More... | |
dataConvert ($value) | |
Convert an internal value before it is stored in the request data. More... | |
format ($value) | |
Format a value from standard, internal format to user format. More... | |
clientFormat ($value) | |
Format a value from standard, internal format to client format. More... | |
formatTag ($value) | |
Format a tag value. More... | |
purge ($value) | |
Purge a value. More... | |
expect ($action) | |
Note if an action is expected. More... | |
execute () | |
Execute an action on this widget. More... | |
nothing ($value) | |
Check if a value is empty. More... | |
check ($value, $index=null) | |
Check a value. More... | |
Public Member Functions inherited from Thing | |
propertyExists ($property) | |
Check if a property exists (public or published). More... | |
constants ($prefix=null) | |
Return all constants. More... | |
get ($key) | |
Get one or more properties. More... | |
set ($key, $value=null) | |
Set one or more properties. More... | |
__get ($key) | |
__set ($key, $value) | |
Data Fields | |
const | TYPES = 'types' |
Allowed file types (mime or extension; mime can have asterisk wildcards or even be a complete. More... | |
const | FILENAME = 'filename' |
Fixed filename for the upload. If everything is OK, file will be overwitten directly, and. More... | |
const | MULTI = 'multi' |
Allow multiple files to be uploaded. More... | |
const | PREVIEW_SIZE = 'previewSize' |
Size (width) of preview image (false = no preview). More... | |
const | USER_FILES = 'userFiles' |
Show user files. More... | |
const | EVENT_UPLOAD = 'controller:widget:file:upload' |
$types = [] | |
$filename = null | |
$multi = false | |
$previewSize = false | |
$previewMax = 3 | |
Maximum number of preview images. More... | |
$sideloadControllerName = null | |
Controller that provides the sideloading. More... | |
$sideloadPath = null | |
Path to temporary store sideload files. More... | |
$sideloadExt = '.side' | |
Extension for sideload files. More... | |
$sideloadMode = 0666 | |
File mode for sideload files. More... | |
$sideloadTokenLength = 16 | |
Length of the sideload token. More... | |
$sideloadHint = null | |
Hint to show during sideloading (translated). More... | |
$sideloadInterval = 5 | |
Poll interval for sideloading check (seconds). More... | |
$sideloadGarbageChance = 100 | |
Clear sideloading path once every ... times. More... | |
$sideloadSkip = 5 | |
Stop scanning for new files after this number of misses. More... | |
Data Fields inherited from Widget | |
const | CHILD_ID_SEPARATOR = '__' |
const | CAPTION = 'caption' |
const | DEFAULT_VALUE = 'defaultValue' |
const | DISPLAY = 'display' |
Display type (see DISPLAY_* constants). More... | |
const | HELP = 'help' |
Help string (translated). More... | |
const | HINT = 'hint' |
Hint string (translated). More... | |
const | PARAMS = 'params' |
Extra parameters (prefix the key with a '@' to point to the value of another widget). More... | |
const | RIGHT = 'right' |
Optional different right with respect to the controller. If the user has the right, then (s)he. More... | |
const | TRAILER = 'trailer' |
Trailer string (translated). More... | |
const | TAGS = 'tags' |
Extra tags for help, hint, and trailer. More... | |
const | WIDGET_HELP = 'widgetHelp' |
General widget help (translated). More... | |
const | CLASS_NAME = 'className' |
const | MIN = 'min' |
Minimum value. More... | |
const | MAX = 'max' |
Maximum value. More... | |
const | REQUIRED = 'required' |
True for required. Set to self::VALID_FUNC to let the validation function handle this. Use. More... | |
const | VALID_FUNC = 'validFunc' |
Specific validation function (called with value and index; returns true if OK). More... | |
const | WIDGETS = 'widgets' |
Optional child widgets (key = name, value = widget object). More... | |
const | SECURITY_CHECKS_IGNORE = 'securityChecksIgnore' |
Security checks to ignore (array with checks to ignore, true =. More... | |
const | DISPLAY_HIDDEN = 'h' |
Do not show (only hidden) More... | |
const | DISPLAY_MINIMAL = 'm' |
Show only value (without input element(s)). More... | |
const | DISPLAY_READABLE = 'r' |
Show input element(s), but read-only. More... | |
const | DISPLAY_WRITEABLE = 'w' |
Show editable input element(s). More... | |
const | EVENT_ACTION_PREFIX = 'controller:widget:action:' |
$defaultValue = null | |
$help = null | |
$min = null | |
$max = null | |
$required = null | |
$trailer = null | |
$widgetHelp = null | |
$validFunc = null | |
$parent = null | |
Optional parent widget. More... | |
Data Fields inherited from Thing | |
const | HIDDEN = 0 |
Property is hidden. More... | |
const | READABLE = 1 |
Property is readable. More... | |
const | WRITEABLE = 2 |
Property is writeable. More... | |
const | READWRITE = 3 |
Property is readable and writeable. More... | |
Protected Member Functions | |
purgeBase ($value) | |
Purge uploaded filename from possible array construction. More... | |
uploadEvent ($name) | |
checkMin ($value, $index=null) | |
checkMax ($value, $index=null) | |
checkUpload ($value, $index=null) | |
checkTypes ($value, $index=null) | |
processUpload ($data, $name) | |
Process upload data. More... | |
sideloadFilename ($token, $index=null) | |
Filename for a sideload file. More... | |
sideloadUrl ($token) | |
Sideload URL. More... | |
sideloadGarbage () | |
Clear old sideload tokens. More... | |
actionRotate () | |
actionDownload () | |
actionUpload () | |
actionDelete () | |
actionUserFiles () | |
actionUserFilePreview () | |
actionUserFile () | |
actionSideload () | |
actionSideloadImage () | |
actionSideloadCheck () | |
getSideloadToken () | |
Protected Member Functions inherited from Widget | |
init () | |
config ($key, $default=null) | |
Get single configuration value. More... | |
purgeBase ($value) | |
Purge function that will be called first. More... | |
executeChild ($id) | |
Execute an action on a child widget. More... | |
checkMin ($value, $index=null) | |
checkMax ($value, $index=null) | |
checkRequired ($value, $index=null) | |
Required check. More... | |
checkValidFunc ($value, $index=null) | |
actionHelp () | |
setController ($value) | |
getDisplay () | |
getFred () | |
getId () | |
getParams () | |
getReadable () | |
getRight () | |
getTags () | |
getWidgets () | |
getWriteable () | |
_get ($key) | |
Protected Member Functions inherited from Thing | |
publish ($property, $visibility=self::READABLE) | |
Publish a property (or hide it again). More... | |
configure ($config) | |
Configure the object. More... | |
_get ($key) | |
Default getter if no specific setter is defined, and the property is also not published (readable). More... | |
_set ($key, $value) | |
Default setter if no specific setter is defined, and the property is also not published (writeable). More... | |
Protected Attributes | |
$_raw = null | |
$_multiRaw = null | |
Protected Attributes inherited from Widget | |
$_controller = null | |
$_id = null | |
$_widgets = null | |
Optional child widgets. More... | |
$_securityChecksIgnore = [] | |
Security checks to ignore. More... | |
$_config = [] | |
Widget configuration (see constants). More... | |
$_display = null | |
$_params = null | |
$_right = null | |
$_tags = null | |
Protected Attributes inherited from Thing | |
$_published = [] | |
Published properties (key = name of property, value = visibility). More... | |
preview | ( | $filename = null , |
|
& | $count = null , |
||
& | $rotate = null |
||
) |
Generate a preview.
string | $filename | File to generate a preview for (empty = fixed upload filename). |
int | $count | Will be set to the number of pages in the file. |
bool | $rotate | Will be set to true if the image can be rotated. |
|
protected |
|
protected |
rotate | ( | $angle = 90 , |
|
$filename = null |
|||
) |
|
protected |
|
protected |
$sideloadControllerName = null |
Controller that provides the sideloading.
$sideloadGarbageChance = 100 |
$sideloadHint = null |
$sideloadInterval = 5 |
$sideloadPath = null |
$sideloadSkip = 5 |
const FILENAME = 'filename' |
const PREVIEW_SIZE = 'previewSize' |
const TYPES = 'types' |