class ListItemPayload extends xelos_workflows_payload_base

Properties

ListsController $mod
protected string $model_name
protected bool $payload_type_reference
protected bool $payload_convertible_to_pdf

Methods

array
get_fdl()

Get FDL for states

string
get_file_url($path_to_file, bool $inline_disposition = true, bool $name = false, bool $zipOnTheFly = false, bool $width = false, bool $height = false, bool $resize_mode = false)

copied from xelos core, but prepended web_dir to path_to_file

mixed
get_payload_properties()

Get payload properties

bool|array
get_placeholders(bool $descriptive = false)

Get all placeholders with payload property values: It's required that the identifier of the form is the same as the payload identifier.

bool|int
set_payload_property(string $property, string|int $value)

Set payload property

Template|void
show_payload()

Show form

string
storage_path()

return _files storage path for payload

string
to_html(int $list_item_id, array $headerFields = [])

Get payload as HTML

Details

at line 38
array get_fdl()

Get FDL for states

Return Value

array

FDL

at line 135
string get_file_url($path_to_file, bool $inline_disposition = true, bool $name = false, bool $zipOnTheFly = false, bool $width = false, bool $height = false, bool $resize_mode = false)

copied from xelos core, but prepended web_dir to path_to_file

Parameters

$path_to_file
bool $inline_disposition
bool $name
bool $zipOnTheFly
bool $width
bool $height
bool $resize_mode

Return Value

string

at line 426
mixed get_payload_properties()

Get payload properties

Return Value

mixed

at line 265
bool|array get_placeholders(bool $descriptive = false)

Get all placeholders with payload property values: It's required that the identifier of the form is the same as the payload identifier.

Parameters

bool $descriptive

Show explanations and examples

Return Value

bool|array

Exceptions

Exception

at line 454
bool|int set_payload_property(string $property, string|int $value)

Set payload property

Parameters

string $property
string|int $value

Return Value

bool|int

Exceptions

Exception

at line 210
Template|void show_payload()

Show form

Return Value

Template|void

Exceptions

Exception
ContentException

at line 113
string storage_path()

return _files storage path for payload

Return Value

string

$full_path

at line 75
string to_html(int $list_item_id, array $headerFields = [])

Get payload as HTML

Parameters

int $list_item_id
array $headerFields

Return Value

string

Exceptions

ContentException