Class Lead_Model
Lead_Model
- Core_ORM
-
Core_Entity
-
Lead_Model
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at lead/model.php
Methods summary
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
morph( integer $type, integer $siteuser_id = 0, $deal_template_id = 0 )
Morph lead into another entity |
protected
|
|
protected
|
|
protected
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
array
|
|
public
|
|
public
|
Methods inherited from Core_Entity
__call(),
_getCopiedName(),
addAllowedTag(),
addEntities(),
addEntity(),
addForbiddenTag(),
addForbiddenTags(),
addXmlTag(),
applyMarksDeleted(),
changeCopiedName(),
clear(),
clearEntities(),
clearEntitiesAfterGetXml(),
clearXmlTags(),
copy(),
create(),
factory(),
find(),
findAll(),
getCount(),
getEntities(),
getFieldIDs(),
getFields(),
getForbiddenTags(),
getMarksDeleted(),
getName(),
getNameColumn(),
getRelations(),
getStdObject(),
getTableColums(),
getTrashDescription(),
getXml(),
getXmlTagName(),
getXmlTags(),
markDeleted(),
removeForbiddenTag(),
setCheck(),
setMarksDeleted(),
setXmlTagName(),
undelete(),
update()
Methods inherited from Core_ORM
__clone(),
__get(),
__isset(),
__set(),
__toString(),
_convertPropertyValue(),
_getRelation(),
_init(),
_load(),
_loadColumnCacheDefaultValues(),
_loadColumns(),
_onAfterLoad(),
_onBeforeLoad(),
_relations(),
_setDefaultValues(),
_setPreloadValues(),
add(),
changed(),
check(),
chunk(),
clearColumnCache(),
clearRelationCache(),
clearRelationModelCache(),
deleteAll(),
getChangedData(),
getClassName(),
getDatabase(),
getFirst(),
getLast(),
getModelName(),
getPrimaryKey(),
getPrimaryKeyName(),
getTableColumns(),
getTableName(),
isCallable(),
isEmptyPrimaryKey(),
load(),
loaded(),
queryBuilder(),
remove(),
save(),
setDatabaseDriver(),
setRelations(),
setValues(),
toArray()
Properties summary
public
|
$contact
|
#
NULL
|
protected
array
|
$_hasMany
One-to-many or many-to-many relations |
#
array(
'lead_directory_email' => array('foreign_key' => 'lead_id'),
'directory_email' => array('through' => 'lead_directory_email', 'through_table_name' => 'lead_directory_emails', 'foreign_key' => 'lead_id'),
'lead_directory_phone' => array('foreign_key' => 'lead_id'),
'directory_phone' => array('through' => 'lead_directory_phone', 'through_table_name' => 'lead_directory_phones', 'foreign_key' =>
'lead_id'),
'lead_directory_website' => array('foreign_key' => 'lead_id'),
'directory_website' => array('through' => 'lead_directory_website', 'through_table_name' => 'lead_directory_websites', 'foreign_key' => 'lead_id'),
'lead_directory_address' => array('foreign_key' => 'lead_id'),
'directory_address' => array('through' => 'lead_directory_address', 'through_table_name' => 'lead_directory_addresses', 'foreign_key' => 'lead_id'),
'lead_note' => array(),
'lead_shop_item' => array(),
'lead_step' => array(),
'lead_event' => array(),
'event' => array('through' => 'lead_event'),
)
|
protected
array
|
$_belongsTo
Belongs to relations |
#
array(
'user' => array(),
'site' => array(),
'lead_status' => array(),
'lead_need' => array(),
'lead_maturity' => array(),
'crm_source' => array(),
'siteuser' => array(),
'shop' => array(),
'shop_order' => array(),
'deal' => array(),
)
|
Properties inherited from Core_Entity
$_allowedTags,
$_cacheAllowedTags,
$_cacheFieldIDs,
$_cacheForbiddenTags,
$_cacheShortcodeTags,
$_changeCopiedName,
$_check,
$_childrenEntities,
$_clearEntitiesAfterGetXml,
$_forbiddenTags,
$_hasRevisions,
$_marksDeleted,
$_nameColumn,
$_shortcodeTags,
$_tagName,
$_typicalForbiddenTags,
$_xmlTags
Properties inherited from Core_ORM
$_bSetPreloadValues,
$_changedColumns,
$_columnCache,
$_columnCacheDefaultValues,
$_dataValues,
$_database,
$_databaseDriver,
$_hasOne,
$_loaded,
$_modelColumns,
$_modelName,
$_preloadValues,
$_primaryKey,
$_queryBuilder,
$_relationCache,
$_relationModelCache,
$_relations,
$_saved,
$_skipColumns,
$_sorting,
$_tableColumns,
$_tableName,
$cache,
$columnCache,
$config,
$relationCache