CrmContact
in package
crmContact Class CRM
Tags
Table of Contents
Properties
- $updated_date : string
- Date of last modification
- $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
Properties
$updated_date
Date of last modification
public
string
$updated_date
= ''
$moduleName
Module Name
protected
string
$moduleName
= "crm"
Tags
Methods
__get()
Get the variable value
public
__get(string $name) : string
Parameters
- $name : string
-
variable name
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