![]() |
FRED™
3.0
FRED™: Framework for Rapid and Easy Development
|
Public Member Functions | |
| generateDatabaseStructure ($table_trans=null) | |
| Generate a definition file from the database structure. More... | |
| table ($table) | |
| Table definition (all columns). More... | |
| key ($table) | |
| Primary key columns. More... | |
| column ($table, $column, $extra=null) | |
| Column definition. More... | |
| value ($table, $column, $key, $default=null) | |
| Definition value. More... | |
| ref ($table, $column) | |
| Get the base (referenced) column. More... | |
| convert ($type, $value) | |
| Convert a single value from database format to standard, internal format. More... | |
| convertColumn ($column, $value, $tables) | |
| Convert a single column value from database format to standard, internal format. More... | |
| convertRecord ($record, $tables) | |
| Convert a record from database format to standard, internal format. More... | |
| format ($type, $value) | |
| Format a value from standard, internal format to database format. More... | |
| formatColumn ($column, $value, $tables) | |
| Convert a single column value from standard, internal format to database format. More... | |
| formatRecord ($record, $tables) | |
| Format a value from standard, internal format to database format. More... | |
| __call ($func_name, $params) | |
Public Member Functions inherited from Component | |
| __construct ($fred, $config=null) | |
| __destruct () | |
| clientConfig () | |
| Public configuration. More... | |
| config ($key, $default=null) | |
| Retrieve a config value. More... | |
| ping () | |
| Ping function. More... | |
| filemtime ($filename) | |
| Filemtime with session cache. More... | |
| component ($name) | |
| Get a component (local or default). More... | |
| components (... $names) | |
| Get multiple components in an array. 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 | |
| $databaseStructureFilename = null | |
| $filename = null | |
| $boolTrue = 1 | |
| $boolFalse = 0 | |
| $charLimit = 128 | |
Data Fields inherited from Component | |
| $filemtimeTtl = 0 | |
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 | |
| getDef () | |
Protected Member Functions inherited from Component | |
| init () | |
| done () | |
| getSession () | |
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 | |
| $_def = null | |
Protected Attributes inherited from Component | |
| $_fred = null | |
| $_config = null | |
| $_name = null | |
| $_components = [] | |
| Local components (key = component name, value = component). More... | |
| $_session = null | |
Protected Attributes inherited from Thing | |
| $_published = [] | |
| Published properties (key = name of property, value = visibility). More... | |
| column | ( | $table, | |
| $column, | |||
$extra = null |
|||
| ) |
| convert | ( | $type, | |
| $value | |||
| ) |
| convertColumn | ( | $column, | |
| $value, | |||
| $tables | |||
| ) |
| convertRecord | ( | $record, | |
| $tables | |||
| ) |
| format | ( | $type, | |
| $value | |||
| ) |
| formatColumn | ( | $column, | |
| $value, | |||
| $tables | |||
| ) |
| formatRecord | ( | $record, | |
| $tables | |||
| ) |
| generateDatabaseStructure | ( | $table_trans = null | ) |
| key | ( | $table | ) |
| ref | ( | $table, | |
| $column | |||
| ) |
| table | ( | $table | ) |
| value | ( | $table, | |
| $column, | |||
| $key, | |||
$default = null |
|||
| ) |