Function __global->has_needed_fields

Definitions

sources/ecommerce.php

  • Find if there are fields needing to filled in in the purchasing module.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type_code ID_TEXT No No required parameter N/A N/A The product codename
$force_extended boolean No No False N/A N/A Show all possible input fields

Returns

  • Whether there are
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if there are fields needing to filled in in the purchasing module.
 *
 * @param  ID_TEXT $type_code The product codename
 * @param  boolean $force_extended Show all possible input fields
 * @return boolean Whether there are
 */

function has_needed_fields(string $type_code, bool $force_extended = false) : bool