ApiOpenStudio PHPDoc

ConvertToBooleanTrait

Trait ConvertToBooleanTrait.

Trait to cast an input value to boolean.

Table of Contents

fromArrayToBoolean()  : mixed
Convert array to boolean.
fromBooleanToBoolean()  : bool
Convert boolean to boolean.
fromFileToBoolean()  : mixed
Convert file to boolean.
fromFloatToBoolean()  : bool
Convert float to boolean.
fromHtmlToBoolean()  : mixed
Convert HTML to boolean.
fromImageToBoolean()  : mixed
Convert image to boolean.
fromIntegerToBoolean()  : bool
Convert integer to boolean.
fromJsonToBoolean()  : bool
Convert JSON string to boolean.
fromTextToBoolean()  : bool
Convert text to boolean.
fromUndefinedToBoolean()  : null
Convert undefined to boolean.
fromXmlToBoolean()  : mixed
Convert XML to boolean.

Methods

fromArrayToBoolean()

Convert array to boolean.

public fromArrayToBoolean(array<string|int, mixed> $array) : mixed
Parameters
$array : array<string|int, mixed>
Tags
throws
ApiException
Return values
mixed

fromBooleanToBoolean()

Convert boolean to boolean.

public fromBooleanToBoolean(bool $boolean) : bool
Parameters
$boolean : bool
Return values
bool

fromFileToBoolean()

Convert file to boolean.

public fromFileToBoolean( $file) : mixed
Parameters
$file :
Tags
throws
ApiException
Return values
mixed

fromFloatToBoolean()

Convert float to boolean.

public fromFloatToBoolean(float $float) : bool
Parameters
$float : float
Tags
throws
ApiException
Return values
bool

fromHtmlToBoolean()

Convert HTML to boolean.

public fromHtmlToBoolean(string $html) : mixed
Parameters
$html : string
Tags
throws
ApiException
Return values
mixed

fromImageToBoolean()

Convert image to boolean.

public fromImageToBoolean( $image) : mixed
Parameters
$image :
Tags
throws
ApiException
Return values
mixed

fromIntegerToBoolean()

Convert integer to boolean.

public fromIntegerToBoolean(int $integer) : bool
Parameters
$integer : int
Tags
throws
ApiException
Return values
bool

fromJsonToBoolean()

Convert JSON string to boolean.

public fromJsonToBoolean(string $json) : bool
Parameters
$json : string
Tags
throws
ApiException
Return values
bool

fromTextToBoolean()

Convert text to boolean.

public fromTextToBoolean(string $text) : bool
Parameters
$text : string
Tags
throws
ApiException
Return values
bool

fromUndefinedToBoolean()

Convert undefined to boolean.

public fromUndefinedToBoolean( $data) : null
Parameters
$data :
Return values
null

fromXmlToBoolean()

Convert XML to boolean.

public fromXmlToBoolean(string $xml) : mixed
Parameters
$xml : string
Tags
throws
ApiException
Return values
mixed

Search results