Class Siteuser_Model
Siteuser_Model
- Core_ORM
-
Core_Entity
-
Siteuser_Model
Direct known subclasses
Maillist_Siteuser_Siteuser_Model,
Siteuser_Group_Siteuser_Model
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at siteuser/model.php
Methods summary
public
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
array
|
#
getPropertyValues( boolean $bCache = TRUE, $aPropertiesId = array() )
Values of all properties of element |
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
Search_Page
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
stdObject
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
float
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
#
counterpartyBackend( Admin_Form_Field $oAdmin_Form_Field,
Backend callback method |
public
string
|
|
public
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public
mixed
|
#
__call( string $name, array $arguments )
Triggered when invoking inaccessible methods in an object context |
public
boolean
|
|
public
|
|
public
|
Methods inherited from Core_Entity
_getCopiedName(),
addAllowedTag(),
addEntities(),
addEntity(),
addForbiddenTag(),
addForbiddenTags(),
addXmlTag(),
applyMarksDeleted(),
changeCopiedName(),
clear(),
clearEntities(),
clearEntitiesAfterGetXml(),
clearXmlTags(),
create(),
factory(),
find(),
findAll(),
getCount(),
getEntities(),
getFieldIDs(),
getFields(),
getForbiddenTags(),
getMarksDeleted(),
getName(),
getNameColumn(),
getRelations(),
getTableColums(),
getXmlTagName(),
getXmlTags(),
markDeleted(),
removeForbiddenTag(),
setCheck(),
setMarksDeleted(),
setXmlTagName(),
undelete(),
update()
Methods inherited from Core_ORM
__clone(),
__get(),
__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(),
setDatabaseDriver(),
setRelations(),
setValues(),
toArray()
Properties summary
public
string
|
$img_list_cashes
Backend property |
#
0
|
public
string
|
$representative
Backend property |
#
0
|
public
string
|
$cart
Backend property |
#
0
|
public
string
|
$timeline
Backend property |
#
0
|
public
string
|
$img_list_affiliates
Backend property |
#
0
|
public
string
|
$counterparty
Backend property |
#
NULL
|
public
string
|
$img_list_people_companies
Backend property |
#
NULL
|
protected
array
|
$_hasMany
One-to-many or many-to-many relations |
#
array(
'siteuser_group' => array('through' => 'siteuser_group_list'),
'siteuser_group_list' => array(),
// Реферралы пользователя
'siteuser_affiliate' => array(),
'siteuser_identity' => array(),
'shop_cart' => array(),
'shop_favorite' => array(),
'shop_order' => array(),
'shop_siteuser_transaction' => array(),
'maillist' => array('through' => 'maillist_siteuser'),
'maillist_siteuser' => array(),
'maillist_fascicle_log' => array(),
'maillist_unsubscriber' => array(),
'forum_topic_post' => array(),
'forum_topic_view' => array(),
'forum_topic_subscriber' => array(),
'forum_siteuser_count' => array(),
'helpdesk_ticket' => array(),
'counter_page' => array(),
'message_topics_by_sender' => array('model' => 'Message_Topic', 'foreign_key' => 'sender_siteuser_id'),
'message_topics_by_recipient' => array('model' => 'Message_Topic', 'foreign_key' => 'recipient_siteuser_id'),
'siteuser_relationship' => array(),
'siteuser_relationship_recipient' => array('foreign_key' => 'recipient_siteuser_id', 'model' => 'Siteuser_Relationship'),
'siteuser' => array('through' => 'siteuser_relationship', 'dependent_key' => 'recipient_siteuser_id'),
'friend' => array(
'through' => 'siteuser_relationship',
'dependent_key' => 'recipient_siteuser_id',
'model' => 'Siteuser',
'foreign_key' => 'siteuser_id',
),
'siteuser_person' => array(),
'siteuser_company' => array(),
'siteuser_user' => array(),
'event' => array('through' => 'event_user'),
'event_siteuser' => array(),
'user' => array('through' => 'siteuser_user'),
'shop_discountcard' => array(),
'lead' => array(),
'siteuser_email' => array(),
)
|
protected
array
|
$_hasOne
One-to-one relations |
#
array(
// Реферралом какого пользователя текущий является (кто является для него аффилиатом)
'affiliate' => array(
'model' => 'Siteuser',
'foreign_key' => 'referral_siteuser_id',
'through' => 'siteuser_affiliate',
'dependent_key' => 'siteuser_id'
),
'siteuser_affiliate' => array(
'foreign_key' => 'referral_siteuser_id',
),
)
|
protected
array
|
$_belongsTo
Belongs to relations |
#
array(
'siteuser_type' => array(),
'siteuser_status' => array(),
'crm_source' => array(),
'site' => array(),
'user' => array(),
)
|
protected
array
|
$_forbiddenTags
Forbidden tags. If list of tags is empty, all tags will show. |
#
array(
'deleted',
'user_id',
'datetime',
'password'
)
|
protected
array
|
$_skipColumns
List of skipped columns from table |
#
array(
'icq',
'name',
'surname',
'patronymic',
'company',
'phone',
'fax',
'website',
'postcode',
'country',
'city',
'address'
)
|
public
|
$icq
|
#
NULL
|
public
|
$name
|
#
NULL
|
public
|
$surname
|
#
NULL
|
public
|
$patronymic
|
#
NULL
|
public
|
$company
|
#
NULL
|
public
|
$phone
|
#
NULL
|
public
|
$fax
|
#
NULL
|
public
|
$website
|
#
NULL
|
public
|
$postcode
|
#
NULL
|
public
|
$country
|
#
NULL
|
public
|
$city
|
#
NULL
|
public
|
$address
|
#
NULL
|
protected
string
|
$_nameColumn
Column consist item's name |
#
'login'
|
protected
array
|
$_preloadValues
List of preloaded values |
#
array(
'active' => 1
)
|
protected
|
$_attachSessionToIp
Attach session to IP |
|
protected
array
|
$_propertyValues
Values of all properties of user |
#
NULL
|
protected
mixed
|
$_showXmlProperties
Show properties in XML |
#
FALSE
|
protected
boolean
|
$_showXmlMaillists
Show maillists data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlCompanies
Show siteuser companies data in XML |
#
TRUE
|
protected
boolean
|
$_showXmlPeople
Show siteuser people data in XML |
#
TRUE
|
protected static
array
|
$_oldFields
|
#
array('name', 'surname', 'patronymic', 'company', 'phone', 'website', 'country', 'city', 'address')
|
Properties inherited from Core_Entity
$_allowedTags,
$_cacheAllowedTags,
$_cacheFieldIDs,
$_cacheForbiddenTags,
$_cacheShortcodeTags,
$_changeCopiedName,
$_check,
$_childrenEntities,
$_clearEntitiesAfterGetXml,
$_hasRevisions,
$_marksDeleted,
$_shortcodeTags,
$_tagName,
$_typicalForbiddenTags,
$_xmlTags
Properties inherited from Core_ORM
$_bSetPreloadValues,
$_changedColumns,
$_columnCache,
$_columnCacheDefaultValues,
$_dataValues,
$_database,
$_databaseDriver,
$_loaded,
$_modelColumns,
$_modelName,
$_primaryKey,
$_queryBuilder,
$_relationCache,
$_relationModelCache,
$_relations,
$_saved,
$_sorting,
$_tableColumns,
$_tableName,
$cache,
$columnCache,
$config,
$relationCache