Function Hook_commandr_fs_database->_do_where

Definitions

sources/hooks/systems/commandr_fs/database.php

  • Take a provided key-value map from the path and generate a DB query WHERE map array.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$table_name string No No required parameter N/A N/A Database table name
$keys string No No required parameter N/A N/A Key-value map ("key:value,key2:value2")

Returns

  • WHERE map array (false: if an invalid key was referenced)
  • Type: ~array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Take a provided key-value map from the path and generate a DB query WHERE map array.
 *
 * @param  string $table_name Database table name
 * @param  string $keys Key-value map ("key:value,key2:value2")
 * @return ~array WHERE map array (false: if an invalid key was referenced)
 */

protected function _do_where(string $table_name, string $keys)