Function Fast_custom_index->delete_from_index
Definitions
sources/database_search.php
- Clear out a content resource from the index.
- Visibility: public
- Is abstract?: No
- Is static?: Yes
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $db | object | No | No | required parameter | N/A | N/A | Database connection |
| $index_table | string | No | No | required parameter | N/A | N/A | Table containing our custom index |
| $index_key_map | array | No | No | required parameter | N/A | N/A | Map of index keys, defining what to delete |
Preview
Code (PHP)
/**
* Clear out a content resource from the index.
*
* @param object $db Database connection
* @param string $index_table Table containing our custom index
* @param array $index_key_map Map of index keys, defining what to delete
*/
public static function delete_from_index(object $db, string $index_table, array $index_key_map)
* Clear out a content resource from the index.
*
* @param object $db Database connection
* @param string $index_table Table containing our custom index
* @param array $index_key_map Map of index keys, defining what to delete
*/
public static function delete_from_index(object $db, string $index_table, array $index_key_map)
