ApiOpenStudio PHPDoc

ConvertToBooleanTrait

Trait ConvertToBooleanTrait.

Trait to cast an input value to boolean.

Table of Contents

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

Methods

fromArrayToBoolean()

Convert array to boolean.

public fromArrayToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromBooleanToBoolean()

Convert boolean to boolean.

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

fromEmptyToBoolean()

Convert empty to boolean.

public fromEmptyToBoolean( $data) : bool|null
Parameters
$data :
Return values
bool|null

fromFileToBoolean()

Convert file to boolean.

public fromFileToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromFloatToBoolean()

Convert float to boolean.

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

fromHtmlToBoolean()

Convert HTML to boolean.

public fromHtmlToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromImageToBoolean()

Convert image to boolean.

public fromImageToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromIntegerToBoolean()

Convert integer to boolean.

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

fromJsonToBoolean()

Convert JSON to boolean.

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

fromTextToBoolean()

Convert text to boolean.

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

Search results