Brimbox Logo Brimbox Version 2.3.4 Released

on_constant>>

This method to set and return a boolean based on whether a ON/OFF constant, usually declared in file bb_constants.php, is set to ON.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function on_constant($constant)

Usage:

$boolean = $main->on_constant('CONSTANT');

Outputs: Boolean true if constant is set to ON (case insensitive), false if undefined or set to anything other than ON.

Parameter: $constant (string)
The name of the constant being evaluated, can be set: $constant = "CONSTANT".

Updated: 2016-07-08