src/Common/CodeIgniter/Libraries/FormValidation.php
public function is_bool($bValue)
    {
        $this->set_message('is_bool', lang('fv_is_bool_field'));
        return is_bool($bValue) || $bValue === '1' || $bValue === '0' || $bValue === 1 || $bValue === 0;
    }
public function is_bool($bValue)
    {
        $this->set_message('is_bool', lang('fv_is_bool_field'));
        return is_bool($bValue) || $bValue === '1' || $bValue === '0' || $bValue === 1 || $bValue === 0;
    }
public function is_bool ( $ bValue ) { $ this -> set_message ( 'is_bool' , lang ( 'fv_is_bool_field' ) ) ; return is_bool ( $ bValue ) || $ bValue === '1' || $ bValue === '0' || $ bValue === 1 || $ bValue === 0 ; }
Checks whether a value is a boolean value

@param string $bValue The value to check

@return bool
Checks whether a value is a boolean value