\MslsLinkImageOnly

Link type: Image only

Summary

Methods
Properties
Constants
get_description()
get_types()
get_types_description()
create()
callback()
__toString()
__set()
__get()
__isset()
__unset()
reset()
has_value()
is_empty()
get_arr()
$txt
$src
$alt
$url
No constants found
No protected methods found
$format_string
$arr
N/A
No private methods found
No private properties found
N/A

Properties

$txt

$txt : string

Type

string

$src

$src : string

Type

string

$alt

$alt : string

Type

string

$url

$url : string

Type

string

$format_string

$format_string : string

Output format

Type

string

$arr

$arr : array

Generic container for all properties of an instance

Type

array

Methods

get_description()

get_description() : string

Gets the link description.

Returns

string

get_types()

get_types() : string[]

Gets all link types as array with "id => name"-items

Returns

string[]

get_types_description()

get_types_description() : array

Gets an array with all link descriptions

Returns

array

create()

create(int $display) : \MslsLink

Factory: Creates a specific instance of MslsLink

Parameters

int $display

Returns

\MslsLink

callback()

callback(mixed $x) : string

Callback function (no lambda here because PHP 5.2 might be still in use)

Parameters

mixed $x

Returns

string

__toString()

__toString() : string

Handles the request to print the object

Returns

string

__set()

__set(string $key, mixed $value)

Overloads the set method.

Parameters

string $key
mixed $value

__get()

__get(string $key) : mixed

Overloads the get method.

Parameters

string $key

Returns

mixed

__isset()

__isset(string $key) : bool

Overloads the isset method.

Parameters

string $key

Returns

bool

__unset()

__unset(string $key)

Overloads the unset method.

Parameters

string $key

reset()

reset() : \MslsGetSet

Resets the properties container to an empty array.

Returns

\MslsGetSet

has_value()

has_value(string $key) : bool

Checks if the array has an non empty item with the specified key name.

This is method is similar to the overloaded __isset-method since __set cleans empty properties but I use for example

$obj->has_value( $temp )

and not

isset( $obj->$temp )

which is the same but in my opinion a little bit ugly.

Parameters

string $key

Returns

bool

is_empty()

is_empty() : bool

Checks if the properties-container is empty.

Returns

bool

get_arr()

get_arr() : array

Gets the complete properties-container as an array.

Returns

array