package org.openpsa.helpers

 Methods

array2code ($arr, $level, $code)

returns array as code to generate it
Static

Parameters

$arr

$level

$code

dm2_savecancel (object $handler, string $action)

Function for adding JavaScript buttons for saving/cancelling Datamanager 2 form via the toolbar
Static

Parameters

$handler

objectThe current handler object reference

$action

stringThe DM's principal action (save or delete)

format_number (mixed $number)

Helper function that formats numbers in the current locale's format
Static
todo Negative numbers

Parameters

$number

mixedThe input number

Returns

stringThe formatted output

get_dm2_attachments ($object, $field)

Static

Parameters

$object

$field

render_fileinfo ($object, $field)

Static

Parameters

$object

$field