Function Standard_crud_module->get_screen_type_for

Definitions

sources/crud_module.php

  • Work out a screen type code.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type_code string No No required parameter N/A N/A General-purpose screen type code (e.g. 'add')
$stub string No No required parameter N/A N/A Type code for current flow (e.g. '' or 'category')

Returns

  • Complete screen type code
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Work out a screen type code.
 *
 * @param  string $type_code General-purpose screen type code (e.g. 'add')
 * @param  string $stub Type code for current flow (e.g. '' or 'category')
 * @return string Complete screen type code
 */

protected function get_screen_type_for(string $type_code, string $stub) : string