Function __global->_handle_data_url_attachments
Definitions
sources/attachments2.php
- Convert attachments embedded as data URLs (usually the result of pasting in) to real attachment Comcode.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$comcode | string | Yes | No | required parameter | N/A | N/A | Our Comcode |
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | The type the attachment will be used for (e.g. download) |
| $id | ID_TEXT | No | No | required parameter | N/A | N/A | The ID the attachment will be used for |
| $db | object | No | No | required parameter | N/A | N/A | The database connector to use |
Preview
Code (PHP)
/**
* Convert attachments embedded as data URLs (usually the result of pasting in) to real attachment Comcode.
*
* @param string $comcode Our Comcode
* @param ID_TEXT $type The type the attachment will be used for (e.g. download)
* @param ID_TEXT $id The ID the attachment will be used for
* @param object $db The database connector to use
*/
function _handle_data_url_attachments(string &$comcode, string $type, string $id, object $db)
* Convert attachments embedded as data URLs (usually the result of pasting in) to real attachment Comcode.
*
* @param string $comcode Our Comcode
* @param ID_TEXT $type The type the attachment will be used for (e.g. download)
* @param ID_TEXT $id The ID the attachment will be used for
* @param object $db The database connector to use
*/
function _handle_data_url_attachments(string &$comcode, string $type, string $id, object $db)

