Function __global->load_parental_control_settings

Definitions

sources/cns_parental_controls.php

  • Initialise the parental control settings (or simply return the class if already initialised).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$show_errors boolean No No False N/A N/A Whether to attach validation errors as messages

Returns

  • The parental control class
  • Type: object
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Initialise the parental control settings (or simply return the class if already initialised).
 *
 * @param  boolean $show_errors Whether to attach validation errors as messages
 * @return object The parental control class
 */

function load_parental_control_settings(bool $show_errors = false) : object