Function Parental_controls_loader->has_control

Definitions

sources/cns_parental_controls.php

  • Find out whether the parental control configuration has defined a given control.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$name ID_TEXT No No required parameter N/A N/A The name of the control to check

Returns

  • Whether this control has been defined at least once in the parental controls configuration
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find out whether the parental control configuration has defined a given control.
 *
 * @param  ID_TEXT $name The name of the control to check
 * @return boolean Whether this control has been defined at least once in the parental controls configuration
 */

public function has_control(string $name) : bool