Function Parental_controls_loader->__construct

Definitions

sources/cns_parental_controls.php

  • Upon construction of the class, parse and validate the XML file.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

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 (true: will also bypass persistent cache)

Preview

Code (PHP)

/**
 * Upon construction of the class, parse and validate the XML file.
 *
 * @param  boolean $show_errors Whether to attach validation errors as messages (true: will also bypass persistent cache)
 */

public function __construct(bool $show_errors = false)