Function Hook_import_mybb->fix_links
Definitions
sources/hooks/modules/admin_import/mybb.php
- Convert MyBB URLs pasted in text fields into software ones.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $post | string | No | No | required parameter | N/A | N/A | The text field text (e.g. a post) |
| $db | object | No | No | required parameter | N/A | N/A | The database connector to import from |
| $table_prefix | string | No | No | required parameter | N/A | N/A | The table prefix the target prefix is using |
Returns
- The new text field text
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert MyBB URLs pasted in text fields into software ones.
*
* @param string $post The text field text (e.g. a post)
* @param object $db The database connector to import from
* @param string $table_prefix The table prefix the target prefix is using
* @return string The new text field text
*/
public function fix_links(string $post, object $db, string $table_prefix) : string
* Convert MyBB URLs pasted in text fields into software ones.
*
* @param string $post The text field text (e.g. a post)
* @param object $db The database connector to import from
* @param string $table_prefix The table prefix the target prefix is using
* @return string The new text field text
*/
public function fix_links(string $post, object $db, string $table_prefix) : string

