Create a new TrueNode.

@param boolean $boolean
Parameter is ignored.

@return TrueNode
353817
public static function create($boolean = TRUE) {
    $is_upper = FormatterFactory::getDefaultFormatter()->getConfig('boolean_null_upper');
    $node = new TrueNode();
    $node->addChild(NameNode::create($is_upper ? 'TRUE' : 'true'), 'constantName');
    return $node;
  }
1048014
public static function create(bool $allowSerializeEmpty = false): ObjectNode
    {
        $node = new self();
        $node->allowSerializeEmpty = $allowSerializeEmpty;

        return $node;
    }
807773
public void add(Boolean bool) {
    elements.add(bool == null ? JsonNull.INSTANCE : new JsonPrimitive(bool));
  }
432379
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "includePathSegment", scope = GetChildren.class)
	public JAXBElement<Boolean> createGetChildrenIncludePathSegment(
			Boolean value) {
		return new JAXBElement<Boolean>(
				_GetDescendantsIncludePathSegment_QNAME, Boolean.class,
				GetChildren.class, value);
	}
181990
public static function create($fid, $bool = null)
  {
    if(!is_bool($bool))
    {
      throw new \InvalidArgumentException('Not a valid boolean value');
    }
    return parent::create($fid, $bool);
  }
1024474
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "includePathSegment", scope = GetFolderTree.class)
	public JAXBElement<Boolean> createGetFolderTreeIncludePathSegment(
			Boolean value) {
		return new JAXBElement<Boolean>(
				_GetDescendantsIncludePathSegment_QNAME, Boolean.class,
				GetFolderTree.class, value);
	}
1032298
public function addNestedWhereQuery($query, $boolean = 'and')
    {
        if (count($query->wheres)) {
            $type = 'Nested';

            $this->wheres[] = compact('type', 'query', 'boolean');

            $this->addBinding($query->getBindings(), 'where');
        }

        return $this;
    }
8108
public function multiple($bool = true)
    {
        if ($this->props['type'] == 'date')
            $this->props['multiple'] = (bool)$bool;
        else
            $this->props['multiple'] = false;

        return $this;
    }
830224
public function addNode( $nodeName, $nodeValue = false )
	{
		$newNode = new ADT_Graph_Node( $nodeName, $nodeValue );
		if( !$this->isNode( $newNode ) )
		{
			$this->nodes[] = $newNode;
			return $newNode;
		}
		else
			return $this->getNode( $nodeName );
	}
621286
public function Create( $value )
    {
		if ( is_bool( $value ) )
		{
			$value = $value ? CoreFuncs::$True : CoreFuncs::$False;
		}
		else if ( ! $value instanceof CoreFuncs::$True &&  ! $value instanceof CoreFuncs::$False )
		{
			$value = Convert::ToBoolean( $value, null );
		}
        return new BoolProxy( $value );
    }
998006
public function whereExists(Closure $callback, $boolean = 'and', $not = false)
    {
        $type = $not ? 'NotExists' : 'Exists';

        $query = $this->newQuery();

        //
        call_user_func($callback, $query);

        $this->wheres[] = compact('type', 'operator', 'query', 'boolean');

        $this->mergeBindings($query);

        return $this;
    }
1309196
public function bool()
    {
        if (!is_bool($this->value)) {
            throw new InvalidBoolException($this->name, $this->value);
        }

        return $this;
    }
539974
private function createBooleanNode(\DOMDocument $document, bool $value, string $name = null): \DOMNode
    {
        $node = $document->createElement('json:boolean', $value ? 'true' : 'false');

        if (null !== $name) {
            $node->setAttribute('name', $name);
        }

        return $node;
    }
950544
private static function encodeBoolean($bool)
    {
        if ($bool)
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_TRUE);
        }
        else
        {
            return self::encodeFirstByte(MajorType::SIMPLE_AND_FLOAT, AdditionalType::SIMPLE_FALSE);
        }
    }
821128
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "includePolicyIds", scope = GetObject.class)
	public JAXBElement<Boolean> createGetObjectIncludePolicyIds(Boolean value) {
		return new JAXBElement<Boolean>(
				_GetObjectOfLatestVersionIncludePolicyIds_QNAME, Boolean.class,
				GetObject.class, value);
	}
337991
public function setBusy($bool = true)
    {
        $this->busyCounter = 0;
        $this->isBusy = (bool)$bool;
        if ($bool) {
            $text = "Please wait...";
            if (is_string($bool)) {
                $text = (string)$bool;
            }
            $lbl = Label::create();
            $lbl->setText($text)->setTextColor("fff")->setTextSize(6)
                ->setSize(90, 12)->setAlign("center", "center")
                ->setPosition($this->busyFrame->getWidth() / 2, -($this->busyFrame->getHeight() / 2));

            $this->busyFrame->addChild($lbl);
            $quad = Quad::create();
            $quad->setStyles("Bgs1", "BgDialogBlur");
            $quad->setBackgroundColor("f00")->setSize($this->busyFrame->getWidth(), $this->busyFrame->getHeight());
            $this->busyFrame->addChild($quad);
        } else {
            $this->busyFrame->removeAllChildren();
        }
    }
57186
function setBoolean(node, boolean) {
    setText(node, boolean === undefined ? '' : boolean === null ? 'null' : boolean ? 'True' : 'False');
}