Class CardsImportFilter
CardsImportFilter: class to import card objects from CSV/vCard file
- Model
- AppModel
- BEAppModel
- BeditaImportFilter
- CardsImportFilter
Located at models/filters/cards_import_filter.php
Methods summary
public
array
|
Methods inherited from BeditaImportFilter
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
email()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Methods inherited from AppModel
Properties summary
protected
string
|
$typeName
|
#
'csv-vcard'
|
protected
array
|
$mimeTypes
|
#
array('text/csv', 'text/vcard')
|
public
string
|
$label
|
#
'CSV or vCard'
|
public
array
|
$options
|
#
array(
'overwritePolicy' => array(
'label' => 'If a card with the same email already exists',
'dataType' => 'options', // number|date|text|options
'values' => array(
'overwrite' => 'overwrite the card',
'new' => 'create a new card',
'skip' => 'skip'
),
'defaultValue' => 'skip', // can be 'overwrite', 'new', 'skip'
'mandatory' => true,
'multipleChoice' => false
)
/*,
'destination' => array(
'label' => 'Import to',
'dataType' => 'tree',
//'defaultValue' => '1', // default position (area or section id) for data import
//'mandatory' => false, // defaultValue and mandatory true are together
'multipleChoice' => true, // if true, then multiple positions allowed
),
'invalidEmail' => array(
'label' => 'If an email is not valid',
'dataType' => 'options', // number|date|text|options
'values' => array(
'import' => 'import',
'skip' => 'skip'
),
'defaultValue' => 'skip', // can be 'import', 'skip'
'mandatory' => true,
'multipleChoice' => false
)
*/
)
|