CrmContact
in package
crmContact Class CRM
Tags
Table of Contents
Constants
- TYPE_COMPANY = 1
- TYPE_PERSON = 2
Properties
- $account_id : mixed
- $added_date : mixed
- $addedUser : mixed
- $address : mixed
- $city : mixed
- $companySize : mixed
- $contact_amount : mixed
- $contact_customer : int
- $contact_gender : mixed
- $contact_language : mixed
- $contact_role : mixed
- $contact_title : mixed
- $contactType : int
- $country : mixed
- $currency : mixed
- $customerId : mixed
- $customerName : mixed
- $customerType : mixed
- $datasource : mixed
- $email : mixed
- $family_name : mixed
- $id : mixed
- $industryType : mixed
- $linkedCompany : string
- $notes : mixed
- $phone : mixed
- $profile_picture : mixed
- $salutation : mixed
- $state : mixed
- $updated_date : string
- Date of last modification
- $url : mixed
- $user_name : mixed
- $zip : mixed
- $moduleName : string
- Module Name
Methods
- __get() : string
- Get the variable value
- __set() : null
- Set the variable if new
- clean() : null
- Reset the variable
- delete() : bool
- Delete the CRM Person/Company
- getCustomerDetails() : array<string|int, mixed>
- Get customer Details
- load() : bool
- Load the record
- save() : bool
- Save a record
- updatePrimaryAddress() : mixed
- updatePrimaryEmail() : mixed
- Update the primary email address of the crm contact
- updatePrimaryPhone() : mixed
Constants
TYPE_COMPANY
public
int
TYPE_COMPANY
= 1
Possible value for CrmContact::$contactType which indicates that this instance is a company.
TYPE_PERSON
public
int
TYPE_PERSON
= 2
Possible value for CrmContact::$contactType which indicates that this instance is a person.
Properties
$account_id
public
mixed
$account_id
$added_date
public
mixed
$added_date
$addedUser
public
mixed
$addedUser
$address
public
mixed
$address
$city
public
mixed
$city
$companySize
public
mixed
$companySize
$contact_amount
public
mixed
$contact_amount
$contact_customer
public
int
$contact_customer
If this instance is a person (CrmContact::$contactType set to CrmContact::TYPE_PERSON), then this may be set to the ID of an assigned company (a CrmContact having CrmContact::$contactType set to CrmContact::TYPE_COMPANY).
$contact_gender
public
mixed
$contact_gender
$contact_language
public
mixed
$contact_language
$contact_role
public
mixed
$contact_role
$contact_title
public
mixed
$contact_title
$contactType
public
int
$contactType
$country
public
mixed
$country
$currency
public
mixed
$currency
$customerId
public
mixed
$customerId
$customerName
public
mixed
$customerName
$customerType
public
mixed
$customerType
$datasource
public
mixed
$datasource
public
mixed
$email
$family_name
public
mixed
$family_name
$id
public
mixed
$id
$industryType
public
mixed
$industryType
$linkedCompany
public
string
$linkedCompany
If this instance is a person (CrmContact::$contactType set to CrmContact::TYPE_PERSON), then this will be set to the name (from CrmContact::$customerName) of the assigned company (if set through CrmContact::$contact_customer).
$notes
public
mixed
$notes
$phone
public
mixed
$phone
$profile_picture
public
mixed
$profile_picture
$salutation
public
mixed
$salutation
$state
public
mixed
$state
$updated_date
Date of last modification
public
string
$updated_date
= ''
$url
public
mixed
$url
$user_name
public
mixed
$user_name
$zip
public
mixed
$zip
$moduleName
Module Name
protected
string
$moduleName
= "crm"
Tags
Methods
__get()
Get the variable value
public
__get(string $name) : string
Parameters
- $name : string
-
variable name
Attributes
- #[ReturnTypeWillChange]
Return values
string__set()
Set the variable if new
public
__set(string $name, string $value) : null
Parameters
- $name : string
-
variable name
- $value : string
-
variable value
Return values
nullclean()
Reset the variable
public
clean() : null
Return values
nulldelete()
Delete the CRM Person/Company
public
delete([int $id = 0 ]) : bool
Parameters
- $id : int = 0
Tags
Return values
boolgetCustomerDetails()
Get customer Details
public
getCustomerDetails() : array<string|int, mixed>
Return values
array<string|int, mixed>load()
Load the record
public
load([int $id = null ]) : bool
Parameters
- $id : int = null
-
record id
Tags
Return values
boolsave()
Save a record
public
save() : bool
Tags
Return values
boolupdatePrimaryAddress()
public
updatePrimaryAddress() : mixed
updatePrimaryEmail()
Update the primary email address of the crm contact
public
updatePrimaryEmail([mixed $defaultEmailType = 0 ]) : mixed
Parameters
- $defaultEmailType : mixed = 0
updatePrimaryPhone()
public
updatePrimaryPhone() : mixed