Class DataShell
format shell script
- Shell
- BeditaBaseShell
- DataShell
Located at vendors/shells/data.php
Methods summary
public
|
|
public
|
|
private
|
|
private
|
|
public
|
|
private
|
Methods inherited from BeditaBaseShell
__clean()
,
__construct()
,
checkDir()
,
checkExportFile()
,
checkUrl()
,
check_sys_get_temp_dir()
,
cleanTempDir()
,
handleExceptions()
,
initConfig()
,
initialize()
,
isUrl()
,
mandatoryArgument()
,
readInputArgs()
,
setupTempDir()
,
startup()
,
test()
,
title()
,
verbose()
Properties summary
private
array
|
$logLevels
|
#
array(
'ERROR' => 0,
'WARN' => 1,
'INFO' => 2,
'DEBUG' => 3
)
|
private
array
|
$options
|
#
array(
'import' => array(
'logLevel' => 2, // INFO
'saveMode' => 1
// 'sourceMediaRoot' => ''
// 'preservePaths'
),
'export' => array(
'logLevel' => 2 // INFO
// 'destMediaRoot' => ''
)
)
|
protected
array
|
$saveModes
|
#
array(
'MERGE' => 0, // merge relations (always for imported objects)
'NEW' => 1, // create new object with new nickname
'OVERRIDE' => 2, // remove object with same nickname
'IGNORE' => 3, // ignore object
'UPDATE' => 4 // merge relations and update data
)
|