CrmSettings
extends CrmLibrary
in package
This is the settings class file for handling the all functionalities under settings menu.
Tags
Table of Contents
Constants
- SOCIAL_NETWORK_BLOGGER = 8
- SOCIAL_NETWORK_FACEBOOK = 4
- SOCIAL_NETWORK_GMAIL = 7
- SOCIAL_NETWORK_ICQ = 11
- SOCIAL_NETWORK_LINKEDIN = 3
- SOCIAL_NETWORK_LIVEJOURNAL = 5
- SOCIAL_NETWORK_MYSPACE = 6
- SOCIAL_NETWORK_NONE = 0
- SOCIAL_NETWORK_SKYPE = 1
- SOCIAL_NETWORK_TWITTER = 2
- SOCIAL_NETWORK_XING = 15
Properties
- $_arrLanguages : array<string|int, mixed>
- All Languages take it as array
- $_arrSettings : array<string|int, mixed>
- Settings value stored in array
- $_csvSeparator : string
- Csv seperator
- $_memberShips : array<string|int, mixed>
- All Memberships take it as array
- $_objTpl : mixed
- Template object
- $_pageTitle : mixed
- $_statusMessage : string
- Status message
- $_strErrMessage : string
- Status Error message
- $_strOkMessage : string
- Status Ok message
- $_strWarMessage : string
- Status Warning message
- $addressTypes : array<string|int, mixed>
- Address Types
- $addressValues : array<string|int, mixed>
- Address Values
- $adminAccessId : int
- Admin Access Id
- $countries : array<string|int, mixed>
- All Countries name take it as array
- $customerAccessId : int
- Customer Access Id
- $customerTypes : array<string|int, mixed>
- All customer types take it as array
- $emailOptions : array<string|int, mixed>
- Email Options
- $moduleName : string
- Module Name
- $moduleNameLC : string
- Module Name in lower case
- $phoneOptions : array<string|int, mixed>
- Phone Options
- $supportCaseStatus : array<string|int, mixed>
- Support Case Status
- $websiteOptions : array<string|int, mixed>
- Website Options
- $websiteProfileOptions : array<string|int, mixed>
- Website Profile Options
- $contact : mixed
- $instance : object
- Class Object
- $load : object
- object for loading class
- $model_industry_types : mixed
- $socialProfileOptions : array<string|int, mixed>
- Social Profile Options
Methods
- __construct() : mixed
- php 5.3 contructor
- _escapeCsvValue() : string
- Escape a value that it could be inserted into a csv file.
- _getDomainNameId() : int
- Get Domain name Id
- _getResourceDropDown() : null
- Populates the Cloudrexx user Filter Drop Down
- _initCrmModule() : mixed
- Registers all css and js to be loaded for crm module
- _usortByMultipleKeys() : int
- Usort for multiple key values
- activateCompanySize() : null
- Activate / Deactivate company size status
- activateTaskType() : true
- activate the task type
- addCrmContact() : null
- Adding Crm Contact
- addCrmContactFromAccessUser() : int
- Create a CRM contact based on an object of \User
- addCurrency() : true
- store currency
- addUser() : bool
- Add User in the time of adding a customer based on the account settings
- countEntries() : int
- Counts all existing entries in the database.
- countEntriesOfJoin() : int
- Counts all existing entries in the database.
- countRecordEntries() : int
- get the count of entries
- createLanguageArray() : array<string|int, mixed>
- Creates an array containing all frontend-languages. Example: $arrValue[$langId]['short'] or $arrValue[$langId]['long']
- createProfilAttributes() : void
- This code creates the crm setting for company size, customerType and industryType if the do not exist and also creates the profile attributes and links them with the new settings in the crm
- createThumbnailOfImage() : string
- Create thumbnail of image
- currencyoverview() : true
- Currency overview
- deleteCompanySize() : null
- Delete company size
- deleteDeal() : null
- Delete Deal record
- deleteDeals() : null
- Delete Multiple Deals
- deleteIndustryType() : null
- Delete Industry type
- deleteMembership() : null
- delete Membership
- deleteStage() : null
- Delete stage record
- deleteTaskType() : true
- delete task type
- editCurrency() : true
- get the edit currency page
- editCustomerTypes() : true
- Edit page of cutomer types
- editTaskType() : true
- Edit the task type
- formattedWebsite() : string
- Formatting the website
- getActiveEmailTemLangId() : array<string|int, mixed>
- get the available email template lang ids
- getCompanySize() : null
- Get the all company sizes / get specific company size by id
- getCompanySizeDropDown() : null
- Get Company Size Dropdown From DB
- getCompanySizeNameById() : string
- Get company size name by id
- getContactAddressCountry() : mixed
- Get the contact Address Country value From DB
- getContactAddrTypeCountry() : null
- Get Contact Address Type Country value
- getContactsQuery() : mixed
- getCountry() : array<string|int, mixed>
- Get Country value from DB
- getCrmDatasource() : string
- Get Crm data Source
- getCurrencyIdByContactId() : int
- Get ID of the currency assigned to a contact
- getCustomerCurrencyDropDown() : null
- Get Customer's Currency Dropdown From DB
- getCustomerTypeDropDown() : null
- Get Customertype Dropdown From DB
- getCustomerTypeNameById() : string
- Get customer type name by id
- getCustomerTypes() : int
- Get Customer Types From DB
- getDatasourceDropDown() : null
- Get Data source Dropdown
- getDealsStages() : null
- Get Deals Stages
- getDefaultCurrencyId() : int
- Get default currencyId
- getEmail() : string
- Get username
- getEmailTempLang() : int
- get the email template lang id for sending mail
- getExistCrmDetail() : array<string|int, mixed>
- get exist crm account detail
- getIndustryTypeDropDown() : null
- Get Industry Type Dropdown From DB
- getIndustryTypeNameById() : string
- Get industry type name by id
- getMembershipDropdown() : null
- Get Membership dropdown
- getMemberships() : array<string|int, mixed>
- Get Membership details From DB
- getModifyTaskTypes() : null
- Get Modify Task type values From DB
- getOverviewMembershipDropdown() : null
- Get membership dropdown for overview page
- getPagingLimit() : int
- Returns the allowed maximum element per page. Can be used for paging.
- getResources() : bool
- Get Resource data's
- getSettings() : array<string|int, mixed>
- Get the Settings value from the DB
- getUserIdByCrmUserId() : int|null
- Checks whether the crm customer is connected with a user account
- getUserName() : string
- Get username
- init() : object
- Initialize a class
- initUploader() : null
- Inits the uploader when displaying a contact form.
- listIndustryTypes() : string
- List the industry types
- mailTemplates() : true
- settings for mail tempalte design
- makeLinksInTheContent() : string
- Make the url string's into clickable link's.
- modifyCompanySize() : null
- update the company size
- notifyStaffOnContactAccModification() : null
- notify the staffs regarding the account modification of a contact
- parseCompanySizePlaceholders() : mixed
- parse the company size place holders
- parseContacts() : array<string|int, mixed>
- Parse the contacts
- parseLetterIndexList() : mixed
- saveCustomerTypes() : true
- store the customer type
- saveSortingCompanySize() : null
- Save the sorting
- saveSortingIndustryType() : null
- Industry type sorting function
- saveSortingMembership() : null
- Membership Sorting functionality
- saveSortingTaskType() : true
- save sorting
- saveStageSorting() : null
- save sorting stage
- saveTaskTypes() : null
- Save Task Type values to DB
- setContactPersonProfile() : mixed
- Adding Crm Contact and link it with crm company if possible
- showCompanySize() : null
- show all company size
- showCustomerSettings() : true
- customer settings overview
- showGeneralSettings() : true
- settings general
- showTaskTypes() : null
- Show all the Task Types
- taskTypeDropDown() : null
- Get Tasktype Dropdown
- taskTypesoverview() : true
- task type overview
- toggleIndustryType() : void
- Industry type Change Status
- toggleMembership() : void
- Change Membership Status
- toggleStage() : void
- change stage status
- unlinkContact() : null
- Unlink the contact
- updateCustomerContacts() : null
- Update Customer Contacts
- updateCustomerMemberships() : null
- Update Customer Memberships
- validateCustomer() : bool
- Validate the Customer
- createThumbnailOfPicture() : string
- Create thumbnail of image
- getTaskPermission() : bool
- Returns true or false for task edit and delete permission
- getTemporaryUploadPath() : array<string|int, mixed>
- Gets the temporary upload location for files.
- moveUploadedImageInToPlace() : string
- Move uploaded image into respective folder
- toggleTaskType() : void
- change status of task type
Constants
SOCIAL_NETWORK_BLOGGER
public
mixed
SOCIAL_NETWORK_BLOGGER
= 8
SOCIAL_NETWORK_FACEBOOK
public
mixed
SOCIAL_NETWORK_FACEBOOK
= 4
SOCIAL_NETWORK_GMAIL
public
mixed
SOCIAL_NETWORK_GMAIL
= 7
SOCIAL_NETWORK_ICQ
public
mixed
SOCIAL_NETWORK_ICQ
= 11
SOCIAL_NETWORK_LINKEDIN
public
mixed
SOCIAL_NETWORK_LINKEDIN
= 3
SOCIAL_NETWORK_LIVEJOURNAL
public
mixed
SOCIAL_NETWORK_LIVEJOURNAL
= 5
SOCIAL_NETWORK_MYSPACE
public
mixed
SOCIAL_NETWORK_MYSPACE
= 6
SOCIAL_NETWORK_NONE
public
mixed
SOCIAL_NETWORK_NONE
= 0
SOCIAL_NETWORK_SKYPE
public
mixed
SOCIAL_NETWORK_SKYPE
= 1
SOCIAL_NETWORK_TWITTER
public
mixed
SOCIAL_NETWORK_TWITTER
= 2
SOCIAL_NETWORK_XING
public
mixed
SOCIAL_NETWORK_XING
= 15
Properties
$_arrLanguages
All Languages take it as array
public
array<string|int, mixed>
$_arrLanguages
= array()
Tags
$_arrSettings
Settings value stored in array
public
array<string|int, mixed>
$_arrSettings
= array()
Tags
$_csvSeparator
Csv seperator
public
string
$_csvSeparator
= ';'
Tags
$_memberShips
All Memberships take it as array
public
array<string|int, mixed>
$_memberShips
= array()
Tags
$_objTpl
Template object
public
mixed
$_objTpl
$_pageTitle
public
mixed
$_pageTitle
= ''
$_statusMessage
Status message
public
string
$_statusMessage
= ''
Tags
$_strErrMessage
Status Error message
public
string
$_strErrMessage
= ''
Tags
$_strOkMessage
Status Ok message
public
string
$_strOkMessage
= ''
Tags
$_strWarMessage
Status Warning message
public
string
$_strWarMessage
= ''
Tags
$addressTypes
Address Types
public
array<string|int, mixed>
$addressTypes
= array("TXT_CRM_HOME", "TXT_CRM_DELIVERY", "TXT_CRM_OFFICE", "TXT_CRM_BILLING", "TXT_CRM_OTHERS", "TXT_CRM_WORK")
Tags
$addressValues
Address Values
public
array<string|int, mixed>
$addressValues
= array("", array('label' => 'address', 'lang_variable' => "TXT_CRM_ADDRESS"), array('label' => 'city', 'lang_variable' => "TXT_CRM_CITY"), array('label' => 'state', 'lang_variable' => "TXT_CRM_STATE"), array('label' => 'zip', 'lang_variable' => "TXT_CRM_ZIP"), array('label' => 'country', 'lang_variable' => "TXT_CRM_COUNTRY"), "type")
Tags
$adminAccessId
Admin Access Id
public
int
$adminAccessId
= 195
Tags
$countries
All Countries name take it as array
public
array<string|int, mixed>
$countries
= array()
Tags
$customerAccessId
Customer Access Id
public
int
$customerAccessId
= 194
Tags
$customerTypes
All customer types take it as array
public
array<string|int, mixed>
$customerTypes
= array()
Tags
$emailOptions
Email Options
public
array<string|int, mixed>
$emailOptions
= array("TXT_CRM_HOME", "TXT_CRM_WORK", "TXT_CRM_OTHERS")
Tags
$moduleName
Module Name
public
string
$moduleName
= ''
Tags
$moduleNameLC
Module Name in lower case
public
string
$moduleNameLC
= ''
Tags
$phoneOptions
Phone Options
public
array<string|int, mixed>
$phoneOptions
= array("TXT_CRM_HOME", "TXT_CRM_WORK", "TXT_CRM_MOBILE", "TXT_CRM_FAX", "TXT_CRM_DIRECT", "TXT_CRM_OTHERS")
Tags
$supportCaseStatus
Support Case Status
public
array<string|int, mixed>
$supportCaseStatus
= array(0 => 'Open', 1 => 'Pending', 2 => 'Closed')
Tags
$websiteOptions
Website Options
public
array<string|int, mixed>
$websiteOptions
= array("TXT_CRM_HOME", "TXT_CRM_WORK", "TXT_CRM_BUSINESS1", "TXT_CRM_BUSINESS2", "TXT_CRM_BUSINESS3", "TXT_CRM_PRIVATE", "TXT_CRM_OTHERS")
Tags
$websiteProfileOptions
Website Profile Options
public
array<string|int, mixed>
$websiteProfileOptions
= array("TXT_CRM_HOME", "TXT_CRM_WORK", "TXT_CRM_OTHERS", "TXT_CRM_BUSINESS1", "TXT_CRM_BUSINESS2", "TXT_CRM_BUSINESS3")
Tags
$contact
protected
mixed
$contact
$instance
Class Object
protected
static object
$instance
Tags
$load
object for loading class
protected
object
$load
Tags
$model_industry_types
protected
mixed
$model_industry_types
$socialProfileOptions
Social Profile Options
protected
array<string|int, mixed>
$socialProfileOptions
= array(self::SOCIAL_NETWORK_NONE => '', self::SOCIAL_NETWORK_SKYPE => 'TXT_CRM_SKYPE', self::SOCIAL_NETWORK_TWITTER => 'TXT_CRM_TWITTER', self::SOCIAL_NETWORK_LINKEDIN => 'TXT_CRM_LINKEDIN', self::SOCIAL_NETWORK_FACEBOOK => 'TXT_CRM_FACEBOOK', self::SOCIAL_NETWORK_LIVEJOURNAL => 'TXT_CRM_LIVEJOURNAL', self::SOCIAL_NETWORK_MYSPACE => 'TXT_CRM_MYSPACE', self::SOCIAL_NETWORK_GMAIL => 'TXT_CRM_GMAIL', self::SOCIAL_NETWORK_BLOGGER => 'TXT_CRM_BLOGGER', self::SOCIAL_NETWORK_ICQ => 'TXT_CRM_ICQ', self::SOCIAL_NETWORK_XING => 'TXT_CRM_XING')
Methods
__construct()
php 5.3 contructor
public
__construct(object $objTpl, mixed $name) : mixed
Parameters
- $objTpl : object
-
template object
- $name : mixed
_escapeCsvValue()
Escape a value that it could be inserted into a csv file.
public
_escapeCsvValue(string $value) : string
Parameters
- $value : string
Return values
string_getDomainNameId()
Get Domain name Id
public
_getDomainNameId(int $websiteId, int $cusId, string $domainName) : int
Parameters
- $websiteId : int
-
website id
- $cusId : int
-
customer id
- $domainName : string
-
domain name
Tags
Return values
int_getResourceDropDown()
Populates the Cloudrexx user Filter Drop Down
public
_getResourceDropDown([string $block = 'members' ][, int $selectedId = 0 ][, int $groupId = 0 ]) : null
Parameters
- $block : string = 'members'
-
The name of the template block to parse
- $selectedId : int = 0
-
The ID of the selected user
- $groupId : int = 0
-
Resource froup id
Return values
null_initCrmModule()
Registers all css and js to be loaded for crm module
public
_initCrmModule() : mixed
_usortByMultipleKeys()
Usort for multiple key values
public
_usortByMultipleKeys(int $key[, string $direction = SORT_ASC ]) : int
Parameters
- $key : int
-
key values
- $direction : string = SORT_ASC
-
sorting order
Return values
intactivateCompanySize()
Activate / Deactivate company size status
public
activateCompanySize(mixed $entries[, bool $deactivate = false ]) : null
Parameters
- $entries : mixed
-
company size id
- $deactivate : bool = false
Tags
Return values
nullactivateTaskType()
activate the task type
public
activateTaskType(int $tasktypeId) : true
Parameters
- $tasktypeId : int
-
id
Tags
Return values
trueaddCrmContact()
Adding Crm Contact
public
addCrmContact([array<string|int, mixed> $arrFormData = array() ]) : null
Parameters
- $arrFormData : array<string|int, mixed> = array()
-
form data's
Return values
nulladdCrmContactFromAccessUser()
Create a CRM contact based on an object of \User
public
static addCrmContactFromAccessUser(User $user) : int
Parameters
- $user : User
Return values
int —The ID of the newly created CRM contact
addCurrency()
store currency
public
addCurrency() : true
Tags
Return values
trueaddUser()
Add User in the time of adding a customer based on the account settings
public
addUser(string $email, string $password[, bool $sendLoginDetails = false ][, mixed $result = array() ][, mixed $id = null ]) : bool
Parameters
- $email : string
-
user email id
- $password : string
-
user password
- $sendLoginDetails : bool = false
-
status
- $result : mixed = array()
- $id : mixed = null
Return values
boolcountEntries()
Counts all existing entries in the database.
public
countEntries(string $table[, string $where = null ]) : int
Parameters
- $table : string
-
table name
- $where : string = null
-
condition
Tags
Return values
int —number of entries in the database
countEntriesOfJoin()
Counts all existing entries in the database.
public
countEntriesOfJoin(string $table) : int
Parameters
- $table : string
-
table name
Tags
Return values
int —number of entries in the database
countRecordEntries()
get the count of entries
public
countRecordEntries(string $query) : int
Parameters
- $query : string
Return values
intcreateLanguageArray()
Creates an array containing all frontend-languages. Example: $arrValue[$langId]['short'] or $arrValue[$langId]['long']
public
createLanguageArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —$arrReturn
createProfilAttributes()
This code creates the crm setting for company size, customerType and industryType if the do not exist and also creates the profile attributes and links them with the new settings in the crm
public
createProfilAttributes() : void
Tags
createThumbnailOfImage()
Create thumbnail of image
public
static createThumbnailOfImage(string $imageName[, bool $profilePic = false ]) : string
Parameters
- $imageName : string
- $profilePic : bool = false
Return values
stringcurrencyoverview()
Currency overview
public
currencyoverview() : true
Tags
Return values
truedeleteCompanySize()
Delete company size
public
deleteCompanySize(mixed $companySizeId) : null
Parameters
- $companySizeId : mixed
-
companySizeId is either integer or array.
Tags
Return values
nulldeleteDeal()
Delete Deal record
public
deleteDeal() : null
Tags
Return values
nulldeleteDeals()
Delete Multiple Deals
public
deleteDeals(array<string|int, mixed> $dealsEntries) : null
Parameters
- $dealsEntries : array<string|int, mixed>
-
entry ids
Tags
Return values
nulldeleteIndustryType()
Delete Industry type
public
deleteIndustryType() : null
Tags
Return values
nulldeleteMembership()
delete Membership
public
deleteMembership() : null
Tags
Return values
nulldeleteStage()
Delete stage record
public
deleteStage() : null
Tags
Return values
nulldeleteTaskType()
delete task type
public
deleteTaskType(int $tasktypeId) : true
Parameters
- $tasktypeId : int
-
Id of tasktype
Tags
Return values
trueeditCurrency()
get the edit currency page
public
editCurrency([int $labelValue = "" ]) : true
Parameters
- $labelValue : int = ""
-
label value
Tags
Return values
trueeditCustomerTypes()
Edit page of cutomer types
public
editCustomerTypes([string $labelValue = "" ]) : true
Parameters
- $labelValue : string = ""
-
label value
Tags
Return values
trueeditTaskType()
Edit the task type
public
editTaskType() : true
Tags
Return values
trueformattedWebsite()
Formatting the website
public
formattedWebsite([string $url = '' ][, int $urlProfile = 0 ]) : string
Parameters
- $url : string = ''
- $urlProfile : int = 0
Return values
stringgetActiveEmailTemLangId()
get the available email template lang ids
public
getActiveEmailTemLangId([string $section = 'Crm' ][, string $key = '' ]) : array<string|int, mixed>
Parameters
- $section : string = 'Crm'
-
mail template section name
- $key : string = ''
-
mail template key value
Return values
array<string|int, mixed>getCompanySize()
Get the all company sizes / get specific company size by id
public
getCompanySize([int $id = 0 ]) : null
Parameters
- $id : int = 0
-
company size id
Tags
Return values
nullgetCompanySizeDropDown()
Get Company Size Dropdown From DB
public
getCompanySizeDropDown(mixed $objTpl[, int $selectedId = 0 ][, string $block = 'companySize' ]) : null
Parameters
- $objTpl : mixed
- $selectedId : int = 0
- $block : string = 'companySize'
Tags
Return values
nullgetCompanySizeNameById()
Get company size name by id
public
getCompanySizeNameById(int $companySizeId) : string
Parameters
- $companySizeId : int
Return values
string —name of the company size
getContactAddressCountry()
Get the contact Address Country value From DB
public
getContactAddressCountry(mixed $objTpl, int $selectedCountry[, string $block = "crmCountry" ]) : mixed
Parameters
- $objTpl : mixed
- $selectedCountry : int
- $block : string = "crmCountry"
Tags
getContactAddrTypeCountry()
Get Contact Address Type Country value
public
getContactAddrTypeCountry(mixed $objTpl, int $selectedType[, string $block = "addressType" ]) : null
Parameters
- $objTpl : mixed
- $selectedType : int
- $block : string = "addressType"
Tags
Return values
nullgetContactsQuery()
public
getContactsQuery([mixed $filter = array() ][, mixed $sortField = 'c.id' ][, mixed $sortOrder = 0 ]) : mixed
Parameters
- $filter : mixed = array()
- $sortField : mixed = 'c.id'
- $sortOrder : mixed = 0
getCountry()
Get Country value from DB
public
getCountry() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getCrmDatasource()
Get Crm data Source
public
getCrmDatasource() : string
Tags
Return values
stringgetCurrencyIdByContactId()
Get ID of the currency assigned to a contact
public
static getCurrencyIdByContactId(int $contactId[, bool $companyFallback = true ]) : int
Fetches the ID of the Currency
assigned to CrmContact identified
by $contactId
.
If selected CrmContact is of type
CrmContact::TYPE_PERSON and has
a company assigned (through
CrmContact::$contact_customer), then that
Currency (its ID) will be returned
instead.
Parameters
- $contactId : int
-
ID of CrmContact
- $companyFallback : bool = true
-
Set this to
false
to not lookup the Currency of an assinged company (through CrmContact::$contact_customer) in case CrmContact is of type CrmContact::TYPE_PERSON.
Return values
int —Id of assigned Currency
or 0
if $crmId
is not a valid ID of a company or person.
getCustomerCurrencyDropDown()
Get Customer's Currency Dropdown From DB
public
getCustomerCurrencyDropDown(mixed $objTpl[, int $selectedId = 0 ][, string $block = "currency" ]) : null
Parameters
- $objTpl : mixed
- $selectedId : int = 0
- $block : string = "currency"
Tags
Return values
nullgetCustomerTypeDropDown()
Get Customertype Dropdown From DB
public
getCustomerTypeDropDown(object $objTpl[, int $selectedId = 0 ][, string $block = "customerTypes" ][, array<string|int, mixed> $options = array() ]) : null
Parameters
- $objTpl : object
- $selectedId : int = 0
- $block : string = "customerTypes"
- $options : array<string|int, mixed> = array()
Tags
Return values
nullgetCustomerTypeNameById()
Get customer type name by id
public
getCustomerTypeNameById(int $customerTypeId) : string
Parameters
- $customerTypeId : int
-
customer type id
Return values
string —name of the customer type
getCustomerTypes()
Get Customer Types From DB
public
getCustomerTypes() : int
Tags
Return values
intgetDatasourceDropDown()
Get Data source Dropdown
public
getDatasourceDropDown(mixed $objTpl[, string $block = 'datasource' ][, int $selectedId = 0 ]) : null
Parameters
- $objTpl : mixed
- $block : string = 'datasource'
-
block name
- $selectedId : int = 0
-
Default value id
Return values
nullgetDealsStages()
Get Deals Stages
public
getDealsStages([int $selectedStage = 0 ][, string $block = "dealsStages" ]) : null
Parameters
- $selectedStage : int = 0
- $block : string = "dealsStages"
Tags
Return values
nullgetDefaultCurrencyId()
Get default currencyId
public
static getDefaultCurrencyId() : int
Return values
int —defaultCurrencyId
getEmail()
Get username
public
getEmail(int $userId) : string
Parameters
- $userId : int
Return values
stringgetEmailTempLang()
get the email template lang id for sending mail
public
getEmailTempLang([array<string|int, mixed> $availableEmailTemp = array() ][, string $email = '' ]) : int
Parameters
- $availableEmailTemp : array<string|int, mixed> = array()
-
available email template ids
- $email : string = ''
-
recipient email id
Return values
intgetExistCrmDetail()
get exist crm account detail
public
getExistCrmDetail(int $id) : array<string|int, mixed>
Parameters
- $id : int
Return values
array<string|int, mixed>getIndustryTypeDropDown()
Get Industry Type Dropdown From DB
public
getIndustryTypeDropDown(object $objTpl[, int $selectedId = 0 ][, string $block = "industryType" ]) : null
Parameters
- $objTpl : object
- $selectedId : int = 0
- $block : string = "industryType"
Tags
Return values
nullgetIndustryTypeNameById()
Get industry type name by id
public
getIndustryTypeNameById(int $industryId) : string
Parameters
- $industryId : int
-
industry type id
Return values
string —name of the industry type
getMembershipDropdown()
Get Membership dropdown
public
getMembershipDropdown(mixed $objTpl, array<string|int, mixed> $memberShips[, string $block = "assignedGroup" ][, array<string|int, mixed> $selected = array() ]) : null
Parameters
- $objTpl : mixed
- $memberShips : array<string|int, mixed>
-
membership ids
- $block : string = "assignedGroup"
-
Block name
- $selected : array<string|int, mixed> = array()
-
Default membership ids
Return values
nullgetMemberships()
Get Membership details From DB
public
getMemberships([bool $active = true ]) : array<string|int, mixed>
Parameters
- $active : bool = true
-
membership status
Tags
Return values
array<string|int, mixed>getModifyTaskTypes()
Get Modify Task type values From DB
public
getModifyTaskTypes([int $id = 0 ]) : null
Parameters
- $id : int = 0
-
Task type id
Tags
Return values
nullgetOverviewMembershipDropdown()
Get membership dropdown for overview page
public
getOverviewMembershipDropdown(mixed $objTpl, object $modelMembership[, int $selected = array() ][, string $block = "memberships" ][, array<string|int, mixed> $options = array() ]) : null
Parameters
- $objTpl : mixed
- $modelMembership : object
- $selected : int = array()
- $block : string = "memberships"
- $options : array<string|int, mixed> = array()
Return values
nullgetPagingLimit()
Returns the allowed maximum element per page. Can be used for paging.
public
getPagingLimit() : int
Tags
Return values
int —allowed maximum of elements per page.
getResources()
Get Resource data's
public
getResources(int $groupId) : bool
Parameters
- $groupId : int
-
resource group id
Tags
Return values
boolgetSettings()
Get the Settings value from the DB
public
getSettings() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Setting values
getUserIdByCrmUserId()
Checks whether the crm customer is connected with a user account
public
static getUserIdByCrmUserId(mixed $crmId) : int|null
Parameters
- $crmId : mixed
Return values
int|null —user_account of crm user
getUserName()
Get username
public
getUserName(int $userId) : string
Parameters
- $userId : int
Return values
stringinit()
Initialize a class
public
static init() : object
Return values
objectinitUploader()
Inits the uploader when displaying a contact form.
public
initUploader(string $callBackFun, string $callBackJs, array<string|int, mixed> $data, string $buttonText[, array<string|int, mixed> $options = array() ]) : null
Parameters
- $callBackFun : string
- $callBackJs : string
- $data : array<string|int, mixed>
- $buttonText : string
- $options : array<string|int, mixed> = array()
Return values
nulllistIndustryTypes()
List the industry types
public
listIndustryTypes(mixed $objTpl, int $intView[, int $intIndustryId = null ][, array<string|int, mixed> $arrParentIds = null ]) : string
Parameters
- $objTpl : mixed
- $intView : int
- $intIndustryId : int = null
-
industry id
- $arrParentIds : array<string|int, mixed> = null
-
parent ids
Tags
Return values
stringmailTemplates()
settings for mail tempalte design
public
mailTemplates() : true
Tags
Return values
truemakeLinksInTheContent()
Make the url string's into clickable link's.
public
makeLinksInTheContent(string $html) : string
Example:
http://www.cloudrexx.com
will beParameters
- $html : string
Return values
string —$html
modifyCompanySize()
update the company size
public
modifyCompanySize(array<string|int, mixed> $fields) : null
Parameters
- $fields : array<string|int, mixed>
-
post values
Tags
Return values
nullnotifyStaffOnContactAccModification()
notify the staffs regarding the account modification of a contact
public
notifyStaffOnContactAccModification([int $customerId = 0 ][, string $first_name = '' ][, string $last_name = '' ][, mixed $gender = 0 ]) : null
Parameters
- $customerId : int = 0
-
customer id
- $first_name : string = ''
-
customer first name
- $last_name : string = ''
-
customer last name
- $gender : mixed = 0
Tags
Return values
nullparseCompanySizePlaceholders()
parse the company size place holders
public
parseCompanySizePlaceholders() : mixed
Tags
parseContacts()
Parse the contacts
public
parseContacts(array<string|int, mixed> $input) : array<string|int, mixed>
Parameters
- $input : array<string|int, mixed>
-
input value
Return values
array<string|int, mixed>parseLetterIndexList()
public
parseLetterIndexList(string $URI, string $paramName, string $selectedLetter) : mixed
Parameters
- $URI : string
-
url
- $paramName : string
-
parameter name
- $selectedLetter : string
-
Selected letter
Tags
saveCustomerTypes()
store the customer type
public
saveCustomerTypes() : true
Tags
Return values
truesaveSortingCompanySize()
Save the sorting
public
saveSortingCompanySize(array<string|int, mixed> $entriesSorting) : null
Parameters
- $entriesSorting : array<string|int, mixed>
-
sorting values.
Tags
Return values
nullsaveSortingIndustryType()
Industry type sorting function
public
saveSortingIndustryType(array<string|int, mixed> $industryEntrySorting) : null
Parameters
- $industryEntrySorting : array<string|int, mixed>
-
entries id
Tags
Return values
nullsaveSortingMembership()
Membership Sorting functionality
public
saveSortingMembership(array<string|int, mixed> $entriesSorting) : null
Parameters
- $entriesSorting : array<string|int, mixed>
-
entries ids
Tags
Return values
nullsaveSortingTaskType()
save sorting
public
saveSortingTaskType(array<string|int, mixed> $tasktypeSorting) : true
Parameters
- $tasktypeSorting : array<string|int, mixed>
-
id array
Tags
Return values
truesaveStageSorting()
save sorting stage
public
saveStageSorting(array<string|int, mixed> $successEntrySorting) : null
Parameters
- $successEntrySorting : array<string|int, mixed>
-
entry ids
Tags
Return values
nullsaveTaskTypes()
Save Task Type values to DB
public
saveTaskTypes([int $id = 0 ]) : null
Parameters
- $id : int = 0
-
task type id
Tags
Return values
nullsetContactPersonProfile()
Adding Crm Contact and link it with crm company if possible
public
setContactPersonProfile([array<string|int, mixed> $arrFormData = array() ][, int $userAccountId = 0 ][, int $frontendLanguage = null ]) : mixed
Parameters
- $arrFormData : array<string|int, mixed> = array()
-
form data's
- $userAccountId : int = 0
- $frontendLanguage : int = null
Tags
showCompanySize()
show all company size
public
showCompanySize() : null
Tags
Return values
nullshowCustomerSettings()
customer settings overview
public
showCustomerSettings() : true
Tags
Return values
trueshowGeneralSettings()
settings general
public
showGeneralSettings() : true
Tags
Return values
trueshowTaskTypes()
Show all the Task Types
public
showTaskTypes() : null
Tags
Return values
nulltaskTypeDropDown()
Get Tasktype Dropdown
public
taskTypeDropDown(object $objTpl[, int $selectedType = 0 ]) : null
Parameters
- $objTpl : object
- $selectedType : int = 0
Tags
Return values
nulltaskTypesoverview()
task type overview
public
taskTypesoverview() : true
Tags
Return values
truetoggleIndustryType()
Industry type Change Status
public
toggleIndustryType(int $industryEntry) : void
Parameters
- $industryEntry : int
-
entry id
Tags
toggleMembership()
Change Membership Status
public
toggleMembership(int $entryId) : void
Parameters
- $entryId : int
-
entry id
Tags
toggleStage()
change stage status
public
toggleStage(int $successEntry) : void
Parameters
- $successEntry : int
-
entry id
Tags
unlinkContact()
Unlink the contact
public
unlinkContact(int $contactId) : null
Parameters
- $contactId : int
Tags
Return values
nullupdateCustomerContacts()
Update Customer Contacts
public
updateCustomerContacts(array<string|int, mixed> $contacts, int $customerId) : null
Parameters
- $contacts : array<string|int, mixed>
- $customerId : int
Tags
Return values
nullupdateCustomerMemberships()
Update Customer Memberships
public
updateCustomerMemberships(array<string|int, mixed> $memberShips, int $customerId) : null
Parameters
- $memberShips : array<string|int, mixed>
- $customerId : int
Tags
Return values
nullvalidateCustomer()
Validate the Customer
public
validateCustomer([string $customerName = '' ][, int $customerId = '' ][, int $id = 0 ]) : bool
Parameters
- $customerName : string = ''
- $customerId : int = ''
- $id : int = 0
Tags
Return values
boolcreateThumbnailOfPicture()
Create thumbnail of image
protected
createThumbnailOfPicture(string $imageName) : string
Parameters
- $imageName : string
Return values
stringgetTaskPermission()
Returns true or false for task edit and delete permission
protected
getTaskPermission(int $added_user, int $assigned_user) : bool
Returns true or false for task edit and delete permission.
Parameters
- $added_user : int
-
The addeduser of the task
- $assigned_user : int
-
responsible user
Return values
bool —True if the user has the access, false otherwise
getTemporaryUploadPath()
Gets the temporary upload location for files.
protected
static getTemporaryUploadPath(int $submissionId, mixed $fieldId, mixed $dir) : array<string|int, mixed>
Parameters
- $submissionId : int
- $fieldId : mixed
- $dir : mixed
Tags
Return values
array<string|int, mixed> —array('path','webpath', 'dirname')
moveUploadedImageInToPlace()
Move uploaded image into respective folder
protected
static moveUploadedImageInToPlace(object $objUser, string $tmpImageName, string $name[, bool $profilePic = false ]) : string
Parameters
- $objUser : object
- $tmpImageName : string
- $name : string
- $profilePic : bool = false
Return values
stringtoggleTaskType()
change status of task type
protected
toggleTaskType(int $tasktypeId) : void
Parameters
- $tasktypeId : int