BooleanUtil Class Reference

Static Public Member Functions

static boolVal ($var)
static boolIntVal ($var)
static boolToString ($var)
static boolIntToString ($var)

Detailed Description

Helper functionality to convert booleans.

Definition at line 40 of file BooleanUtil.php.


Member Function Documentation

static boolVal ( var  )  [static]

Converts a variable to bool. If it is a string 'true' is true.

Definition at line 46 of file BooleanUtil.php.

static boolIntVal ( var  )  [static]

Converts a variable to an integer true or false as 1 and 0. If it is a string 'true' is true.

Definition at line 56 of file BooleanUtil.php.

static boolToString ( var  )  [static]

Converts a boolean to a string as 'true' or 'false'.

Definition at line 64 of file BooleanUtil.php.

static boolIntToString ( var  )  [static]

Converts an integer true or false (1 or 0) to a string as 'true' or 'false'.

Definition at line 80 of file BooleanUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jun 26 07:10:23 2017