Function Hook_commandr_fs_catalogues->_find_unique_key_num

Definitions

sources/hooks/systems/commandr_fs/catalogues.php

  • Find the best unique key index for the catalogue.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$fields array No No required parameter N/A N/A The catalogue fields

Returns

  • The key index
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the best unique key index for the catalogue.
 *
 * @param  array $fields The catalogue fields
 * @return integer The key index
 */

protected function _find_unique_key_num(array $fields) : int