Class Card
Addressbook card model
- Model
- AppModel
- BEAppModel
- BEAppObjectModel
- Card
Methods summary
public
|
|
public
|
|
public
|
|
private
|
|
public
results
|
#
importCSVFile( string $csvFile, array $options = null )
Import a Microsoft Outlook/Outlook Express CSV file |
public
string,
|
|
public
string,
|
|
public
string,
|
#
createCsvAsString( array $data, array $options = null )
Generate CSV file content as string from cards data array |
public
results
|
|
public
|
|
private
|
|
private
|
Methods inherited from BEAppObjectModel
apiTransformer()
,
arrangeDataForClone()
,
checkType()
,
cloneObject()
,
field()
,
getTypeId()
,
save()
,
saveField()
,
updateHasManyAssoc()
,
validateContent()
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()
Constants summary
string |
DEFAULT_CSV_DELIMITER
|
#
','
|
Properties summary
public
array
|
$searchFields
|
#
array(
"title" => 10,
"nickname" => 8,
"description" => 4,
"website" => 6,
"email" => 6,
"email2" => 5,
"street_address" => 3,
"company_name" => 3,
"city" => 4,
"note" => 2
)
|
public
array
|
$actsAs
|
#
array(
'CompactResult' => array("MailGroup", "GeoTag")
)
|
protected
array
|
$modelBindings
|
#
array(
'detailed' => array(
'BEObject' => array(
'ObjectType',
'UserCreated',
'UserModified',
'Permission',
'ObjectProperty',
'LangText',
'RelatedObject',
'Category',
'Annotation',
'User',
'Alias',
'Version' => array('User.realname', 'User.userid'),
'GeoTag'
),
'MailGroup'
),
'default' => array(
'BEObject' => array(
'ObjectProperty',
'LangText',
'ObjectType',
'Category',
'RelatedObject',
'Annotation' )
),
'minimum' => array('BEObject' => array('ObjectType')),
'frontend' => array(
'BEObject' => array(
'LangText',
'RelatedObject',
'GeoTag',
'ObjectProperty',
'Category'
)
),
'api' => array(
'BEObject' => array(
'LangText',
'GeoTag',
'ObjectProperty',
'Category'
)
)
)
|
public
array
|
$objectTypesGroups
|
#
array("leafs", "related")
|
public
array
|
$hasAndBelongsToMany
|
#
array(
"MailGroup" => array(
"joinTable" => "mail_group_cards",
"with" => "MailGroupCard"
)
)
|
public
array
|
$validate
|
#
array(
'email' => array(
'rule' => 'email',
'allowEmpty' => true,
'message' => 'Please supply a valid email address.'
),
'email2' => array(
'rule' => 'email',
'allowEmpty' => true,
'message' => 'Please supply a valid email address.'
),
'newsletter_email' => array(
'rule' => 'email',
'allowEmpty' => true,
'message' => 'Please supply a valid email address.'
)
)
|
private
array
|
$csvFields
|
#
array (
"Title" => "person_title", "First Name" => "name", "Middle Name", "Last Name" => "surname",
"Suffix", "E-mail Address" => "email", "E-mail 2 Address" => "email2", "E-mail 3 Address",
"Business Street","Business Street 2","Business Street 3","Business City",
"Business State" => "state_name", "Business Postal Code" => "zipcode", "Business Country" => "country",
"Home Street" => "street_address",
"Home Street 2","Home Street 3","Home City","Home State","Home Postal Code","Home Country",
"Other Street","Other Street 2","Other Street 3","Other City","Other State",
"Other Postal Code","Other Country","Company" => "company_name","Department",
"Job Title","Assistant's Phone","Business Fax" => "fax","Business Phone" => "phone",
"Business Phone 2" => "phone2" ,"Callback",
"Car Phone","Company Main Phone","Home Fax","Home Phone","Home Phone 2","ISDN","Mobile Phone",
"Other Fax","Other Phone","Pager","Primary Phone","Radio Phone","TTY/TDD Phone","Telex",
"Assistant's Name","Birthday" => "birthdate","Manager's Name","Notes","Other Address PO Box","Spouse",
"Web Page" => "website", "Personal Web Page" => "website",
'Mail Group' => 'mail_group'
)
|
private
string
|
$csvDelimiter
|
#
self::DEFAULT_CSV_DELIMITER
|