Public Member Functions | Public Attributes | Protected Attributes

CardsImportFilter Class Reference

CardsImportFilter: class to import card objects from CSV/vCard file. More...

Inheritance diagram for CardsImportFilter:
BeditaImportFilter BEAppModel AppModel

List of all members.

Public Member Functions

 import ($source, array $options=array())
 Import cards from CSV or vCard file.

Public Attributes

 $label = 'CSV or vCard'
 $options

Protected Attributes

 $typeName = 'csv-vcard'
 $mimeTypes = array('text/csv', 'text/vcard')

Detailed Description

CardsImportFilter: class to import card objects from CSV/vCard file.

Definition at line 27 of file cards_import_filter.php.


Member Function Documentation

CardsImportFilter::import ( source,
array $  options = array() 
)

Import cards from CSV or vCard file.

Parameters:
string $source, CSV / vCard file path
array $options, import options:
Returns:
array , result array containing 'objects' => number of imported objects 'message' => generic message (optional) 'error' => error message (optional)
Exceptions:
BeditaException 

Reimplemented from BeditaImportFilter.

Definition at line 80 of file cards_import_filter.php.


Member Data Documentation

CardsImportFilter::$options
Initial value:
 array(
        'overwritePolicy' => array(
            'label' => 'If a card with the same email already exists',
            'dataType' => 'options', 
            'values' => array(
                'overwrite' => 'overwrite the card',
                'new' => 'create a new card',
                'skip' => 'skip'
            ),
            'defaultValue' => 'skip', 
            'mandatory' => true,
            'multipleChoice' => false
        )
        
    )

Definition at line 34 of file cards_import_filter.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:46 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus