@param bool $jquery

@return bool
556730
public function useJquery($jquery = null)
    {
        if ($jquery !== null) {
            $this->jquery = (bool) $jquery;
        }

        return $this->jquery;
    }
571509
function bool(val) {
	assert(typeof val === 'boolean')
	var a = []
	a.op = 'bool'
	a.val = val
	return a
}
967318
public static function checkboxValue2Boolean($checkboxValue)
    {
        $mapping = [
            'on'  => true,
            'off' => false,
        ];

        $clearValue = strtolower(trim($checkboxValue));

        if (isset($mapping[$clearValue])) {
            return $mapping[$clearValue];
        }

        return false;
    }
1058457
public function getBool($variable, $default = false)
    {
        return (bool) $this->get($variable, $default, array(false, true), false);
    }
1104669
public function _click($element='this', $js=array(), $ret_false=TRUE) {
		if (!is_array($js)) {
			$js=array (
					$js
			);
		}

		if ($ret_false) {
			$js[]="return false;";
		}

		return $this->_add_event($element, $js, 'click');
	}
870760
public static function bool($value=false, bool $flatten=false) {
		ref\cast::bool($value, $flatten);
		return $value;
	}
675539
public function true(string $error = 'not true') : Boolean
    {
        return $this->pipe(
            self::predicate(
                function (bool $bool) : bool {
                    return !!$bool;
                },
                $error
            )
        );
    }
100175
function( bool ){
                $( document )[ bool ? "off" : "on" ]("selectstart", drag.dontstart )
                    .css("MozUserSelect", bool ? "" : "none" );
                // .attr("unselectable", bool ? "off" : "on" )
                document.unselectable = bool ? "off" : "on";
            }
244115
public function delete(bool $recursive = true): bool
    {
        $this->each(function (AbstractObject $item) use ($recursive) {
            if ($item->isFolder()) {
                $item->delete($recursive);
            } else {
                $item->delete();
            }
        });

        return true;
    }
171565
public function error($return = false)
    {
        if (!empty($this->error)) {
            if ($return) {
                return $this->error;
            }
            var_dump($this->error);
            return null;
        }
        return false;
    }
624687
public function disableEditingCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableEditingCheck($disable);

        return $this;
    }
708038
public function getBool(string $key, bool $default = null) : bool 
    {
        if ($this->getString($key) === 'true') {
            return true;
        }

        if ($this->getString($key) === 'false') {
            return false;
        }

        return (bool) $this->get($key, $default);
    }
482135
public function ignoreGlobal(?bool $bool = null): bool
    {
        if ($bool === null) {
            return $this->ignoreGlobal;
        }

        $this->ignoreGlobal = (bool) $bool;

        return $bool;
    }
1033888
public function rule_true($a)
    {
        // Changes PHP true to 1
        $a = strtolower($a);

        $vals = array('true', 't', 1, 'yes', 'y');

        if (!in_array($a, $vals)) {
            return $this->fail('Must be true');
        }
    }
1001475
public function ifFalse($bool)
    {
        if (null !== $this->apply) {
            throw new \RuntimeException('Cannot nest ifTrue or ifFalse call');
        }

        $this->apply = (false === $bool);

        return $this;
    }
612326
function (bind) {
                if (bind.to == null) {
                    // bind.to is mandatory
                    this.$logError(this.MISSING_TO_BINDING);
                    return false;
                }

                var bindedValue = bind.inside[bind.to];
                if (bindedValue == null || ariaUtilsType.isBoolean(bindedValue)) {
                    // If it is bound to something that doesn't exist or a boolean, it is valid
                    return true;
                }

                this.$logError(this.INVALID_TO_BINDING);
                return false;
            }
138879
public static function js($file = false) {

        if ($file && !Text::contains($file, '.js')) {
            $file .= '.js';
        }

        $path = DOC_ROOT . Config::get('paths', 'js');

        if ($file && File::isFile($path . $file)) {

            echo '<script>';
            require $path . $file;
            echo '</script>';
            return true;
        }

        return false;
    }