namespace \webfiori\database
abstract class Column
Class Methods Summary
Class Methods Details
Parameters:
- string $name The name of the column as it appears in the database.
Parameters:
- unkown_type $val
Parameters:
- string $alias Column alias.
Parameters:
Sets a custom filtering function to cleanup values before being used in database queries. The function signature should be as follows :
function ($orgVal, $cleanedVa)
where the first value is the original value and the second one is the value with basic filtering applied to.Parameters:
- Closure $callback The callback.
Parameters:
- string $type The type of column data.
Parameters:
- mixed $defaultVal The default value.
Parameters:
- boolean $bool true if the column allow null values. false if not.
Updates the value of the property $isPrimary. Note that once the column become primary, it will not allow null values.
Parameters:
- boolean $bool true if the column is primary key. false if not.
Parameters:
- boolean $bool True if the column value is unique. false if not.
Parameters:
- string $name The name of the column as it appears in the database.
Parameters:
Parameters:
- unkown_type $scale
Parameters:
- int $size A positive number that represents the size. must be greater than 0.
Parameters:
- array $datatypes An indexed array that contains a strings that represents the types.
Parameters:
- boolean $withDbPrefix True to prefix table name with database name. false to not prefix table name with database name.