Documentation

Lead_Controller
in package

Lead_Controller.

Tags
subpackage

Lead

version
7.x
copyright

© 2005-2025, https://www.hostcms.ru

Table of Contents

Properties

$allowTags  : string
Backend property

Methods

createLeadFromEmail()  : self
Create lead from email
getLeadsByPhone()  : array<string|int, mixed>
Get Lead by phone
_findLead()  : object|null
Find lead

Properties

$allowTags

Backend property

public static string $allowTags = '<html><head><body><style><a><b><strong><img><em><i><span><small><div><p><br><br/><br /><li><ol><ul><pre><table><tr><td><tbody><thead><h1><h2><h3><h4><h5><h6>'

Methods

createLeadFromEmail()

Create lead from email

public static createLeadFromEmail(array<string|int, mixed> $aMessage[, int $crm_source_id = 0 ]) : self
Parameters
$aMessage : array<string|int, mixed>

message

$crm_source_id : int = 0
Return values
self

getLeadsByPhone()

Get Lead by phone

public static getLeadsByPhone(string $phone[, bool $bCache = TRUE ]) : array<string|int, mixed>
Parameters
$phone : string
$bCache : bool = TRUE
Return values
array<string|int, mixed>

_findLead()

Find lead

protected static _findLead(string $email) : object|null
Parameters
$email : string
Return values
object|null

        
On this page

Search results