\OpenEstate\PhpExport\ActionSetLanguage

Select current language.

Summary

Methods
Properties
Constants
__construct()
__destruct()
execute()
getName()
getParameters()
getUrl()
$languageParameter
NAME
No protected methods found
No protected properties found
N/A
No private methods found
$name
N/A

Constants

NAME

NAME

Action name.

Properties

$languageParameter

$languageParameter : string

Parameter name for the language code.

Type

string

$name

$name : string

Internal name of this action.

Type

string

Methods

__construct()

__construct(string  $name = self::NAME) 

SetLanguage constructor.

Parameters

string $name

internal name

__destruct()

__destruct() 

AbstractAction destructor.

execute()

execute(\OpenEstate\PhpExport\Environment  $env) : mixed

Execute this action.

Parameters

\OpenEstate\PhpExport\Environment $env

export environment

Returns

mixed —

action result

getName()

getName() : string

Get the internal action name.

Returns

string —

action name

getParameters()

getParameters(\OpenEstate\PhpExport\Environment  $env, string|null  $language = null) : array

Get parameter values for this action.

Parameters

\OpenEstate\PhpExport\Environment $env

export environment

string|null $language

language code

Returns

array —

associative array with parameter values

getUrl()

getUrl(\OpenEstate\PhpExport\Environment  $env, string|null  $language = null) : string

Get url for this action.

Parameters

\OpenEstate\PhpExport\Environment $env

export environment

string|null $language

language code

Returns

string —

url