Function __global->get_cpf_storage_for
Definitions
sources/cns_members_action.php
- Find how to store a field in the database.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | The field type |
| $encrypted | BINARY | No | No | 0 | N/A | N/A | Whether the field is encrypted |
| $__default | string | No | No | Blank (empty string) | N/A | N/A | The default value to use |
Returns
- A tuple: the DB field type, the default (in correct data type)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find how to store a field in the database.
*
* @param ID_TEXT $type The field type
* @param BINARY $encrypted Whether the field is encrypted
* @param string $__default The default value to use
* @return array A tuple: the DB field type, the default (in correct data type)
*/
function get_cpf_storage_for(string $type, int $encrypted = 0, string $__default = '') : array
* Find how to store a field in the database.
*
* @param ID_TEXT $type The field type
* @param BINARY $encrypted Whether the field is encrypted
* @param string $__default The default value to use
* @return array A tuple: the DB field type, the default (in correct data type)
*/
function get_cpf_storage_for(string $type, int $encrypted = 0, string $__default = '') : array

