src/Budkit/Protocol/Input.php
public function getBoolean($name, $default = '', $verb = 'get', $options = array())
    {
        //FILTER_SANITIZE_NUMBER_INT
        $filter = \IS\BOOLEAN;
        $options = array(
            "options" => $options
        );

        $boolean = $this->getVar($name, $filter, $default, $verb, $options);

        //@TODO valid is float before return

        return (boolean)$boolean;
    }
public function getBoolean($name, $default = '', $verb = 'get', $options = array())
    {
        //FILTER_SANITIZE_NUMBER_INT
        $filter = \IS\BOOLEAN;
        $options = array(
            "options" => $options
        );

        $boolean = $this->getVar($name, $filter, $default, $verb, $options);

        //@TODO valid is float before return

        return (boolean)$boolean;
    }
public function getBoolean ( $ name , $ default = '' , $ verb = 'get' , $ options = array ( ) ) { //FILTER_SANITIZE_NUMBER_INT $ filter = \ IS \ BOOLEAN ; $ options = array ( "options" => $ options ) ; $ boolean = $ this -> getVar ( $ name , $ filter , $ default , $ verb , $ options ) ; //@TODO valid is float before return return ( boolean ) $ boolean ; }
Remove all characters except digits 0 and 1.
Transforms into Boolean true or false, where 0=false and 1=true

@param string $name
@param string $verb
Remove all characters except digits 0 and 1 . Transforms into Boolean true or false where 0 = false and 1 = true