class ImportExport (View source)

ImportExport class

Methods

static 
addJsFiles($page)

Add import/export js files to the page

static 
addExportButton($text, $id = 'export', $class = 'butAction', $alt = '')

Add/print export button

static 
addImportButton($text, $accept, $id = 'import', $file_input_id = 'import-file-input', $class = 'butAction', $alt = '')

Add/print import button

Details

static addJsFiles($page)

Add import/export js files to the page

Parameters

$page page handler/object

static addExportButton($text, $id = 'export', $class = 'butAction', $alt = '')

Add/print export button

Parameters

$text button text
$id button id
$class button class
$alt button alt/title

static addImportButton($text, $accept, $id = 'import', $file_input_id = 'import-file-input', $class = 'butAction', $alt = '')

Add/print import button

Parameters

$text button text
$accept files to accept, e.: '.txt|.png'
$id button id
$file_input_id hidden file input id
$class button class
$alt button alt/title