![]() |
FRED™
3.0
FRED™: Framework for Rapid and Easy Development
|
Public Member Functions | |
| clientConfig () | |
| Public configuration. More... | |
Public Member Functions inherited from Char | |
| formatTag ($value) | |
| Format a tag value. More... | |
Public Member Functions inherited from Widget | |
| __construct ($config=null) | |
| update ($config) | |
| Update the widget configuration. More... | |
| caption ($id=null) | |
| hint ($id=null) | |
| meta ($key, $default=null) | |
| Get a meta data value. More... | |
| 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... | |
| purge ($value) | |
| Purge a value. More... | |
| expect ($action) | |
| Note if an action is expected. More... | |
| execute ($id) | |
| Execute an action on this widget. More... | |
| nothing ($value) | |
| Check if a value is empty. More... | |
| check ($value) | |
| 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 | NUMBER_ALL = null |
| const | NUMBER_MOBILE = 'mobile' |
| const | NUMBER_FIXED = 'fixed' |
| const | NUMBER = 'number' |
| Allowed number type (see NUMBER_* constants). More... | |
| const | COUNTRIES = 'countries' |
| Allowed countries (single or array of ISO2 codes; empty = all). More... | |
| const | POPULAR = 'popular' |
| Initially show only those popular countries. More... | |
| $regex = '/^\\+(\\d+( |\\-| ?\\(|\\) ?)?)+\\d+$/' | |
| $number = self::NUMBER_ALL | |
| $countryOrder = 'short' | |
| $countrySelectCaption = '' | |
| $countryShowAllCaption = '...' | |
| $countryFormat = '[emoji] [short] ([shortCode])' | |
| $countriesTtl = 7 * 86400 | |
| $countriesKey = 'fred-controller-widget-phone-countries' | |
| $popular = [] | |
Data Fields inherited from Char | |
| const | SIZE = 'size' |
| Size of field. More... | |
| const | PLACEHOLDER = 'placeholder' |
| const | AUTOCOMPLETE = 'autocomplete' |
| Browser auto-complete (see. More... | |
| const | SUGGEST = 'suggest' |
| Suggestion optiones. This can be an assoc.array, a callback function (called with all extra. More... | |
| const | NOTATION = 'notation' |
| Regular expression describing the prefered notation style (e.g. '/^[A-Z]/' = start with a. More... | |
| const | TRANSFORM = 'transform' |
| Transform the value (see \Rsi\Str::TRANSFORM_* constants). More... | |
| const | TRIM = 'trim' |
| Strip these characters from the beginning and end of the value (true for regular whitespace). More... | |
| const | REPLACE = 'replace' |
| Array with key = regex to search for and value = value to replace it with. More... | |
| const | REGEX = 'regex' |
| const | SPOOF = 'spoof' |
| $regex = null | |
| $spoof = null | |
| Spoof check options (true = all; see \Spoofchecker). More... | |
| $size = null | |
| $placeholder = null | |
| $autocomplete = null | |
| $suggest = null | |
| $suggestLimit = 10 | |
| $notation = null | |
| $transform = null | |
| $trim = null | |
| $replace = [] | |
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 | META = 'meta' |
| Meta data (array). More... | |
| const | PARAMS = 'params' |
| Extra parameters for async calls (prefix the key with a '@' to point to the value of another. 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... | |
| $indexes = [] | |
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 | |
| checkFormat ($value, $index=null) | |
| getCountries () | |
Protected Member Functions inherited from Char | |
| purgeBase ($value) | |
| Purge function that will be called first. More... | |
| purgeTransform ($value) | |
| purgeTrim ($value) | |
| purgeReplace ($value) | |
| checkMin ($value) | |
| checkMax ($value) | |
| checkRegex ($value) | |
| checkSpoof ($value) | |
| actionSuggest () | |
| getParams () | |
Protected Member Functions inherited from Widget | |
| init () | |
| config ($key, $default=null) | |
| Get single configuration value. More... | |
| executeChild ($id) | |
| Execute an action on a child widget. More... | |
| indexId ($id, $join=false) | |
| Add indexes to an ID (with wildcards). More... | |
| checkRequired ($value) | |
| Required check. More... | |
| checkValidFunc ($value) | |
| actionHelp () | |
| setController ($value) | |
| getDisplay () | |
| getFred () | |
| getId () | |
| getReadable () | |
| getRight () | |
| getTags () | |
| getWidgets () | |
| getWriteable () | |
| _get ($key) | |
| Default getter if no specific setter is defined, and the property is also not published (readable). More... | |
Protected Member Functions inherited from Thing | |
| publish ($property, $visibility=self::READABLE) | |
| Publish a property (or hide it again). More... | |
| alias ($alias, $property, $object=null) | |
| Define an alias for a property (of another object). More... | |
| configure ($config) | |
| Configure the object. More... | |
| _set ($key, $value) | |
| Default setter if no specific setter is defined, and the property is also not published (writeable). More... | |
Protected Attributes | |
| $_countries = 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 | |
| $_meta = [] | |
| $_params = [] | |
| $_right = null | |
| $_tags = null | |
| $_executing = false | |
| Executing an direct action on the widget. More... | |
Protected Attributes inherited from Thing | |
| $_published = [] | |
| Published properties (key = name of property, value = visibility). More... | |
| $_aliases = [] | |
| Alias properties (key = alias, value = [object,property]). More... | |
| clientConfig | ( | ) |
| $countryFormat = '[emoji] [short] ([shortCode])' |
| const COUNTRIES = 'countries' |
| const NUMBER = 'number' |
| const POPULAR = 'popular' |