Function __global->_selectcode_to_generic_callback

Definitions

sources/selectcode.php

  • Function to do an actual data lookup sourced via the database, used as a kind of a callback function (it's name gets passed into the generic API).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$table_name ?string required parameter N/A N/A The database's table for the record-set we're matching (null: use a different lookup method)
$field_name ?string required parameter N/A N/A The database's ID field for the record-set we're matching (null: use a different lookup method)
$category_field_name ?string required parameter N/A N/A The database's field name for the record-set's container-category specifier (null: don't support subtree [*-style] searches)
$has_no_parents boolean required parameter N/A N/A Whether there are parents in the filter
$db ?object required parameter N/A N/A Database connector to use (null: website)

Return

  • A list of ID numbers
  • Type: array
  • Set: N/A
  • Range: N/A