Class Shop_Model
Shop_Model
- Core_ORM
-
Core_Entity
-
Shop_Model
Direct known subclasses
Shop_Comment_Property_List_Model,
Shop_Group_Property_List_Model,
Shop_Item_Property_List_Model,
Shop_Order_Property_List_Model,
Siteuser_Shop_Cart_Model
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at shop/model.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
string|null
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
array
|
|
public
|
|
public
|
|
public
string
|
|
public
float
|
|
public
|
|
public
string
|
|
public
stdObject
|
|
protected
|
|
public
string
|
#
nameBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
shop_currency_nameBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
|
Methods inherited from Core_Entity
__call(),
_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(),
getTrashDescription(),
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(),
setDatabaseDriver(),
setRelations(),
setValues(),
toArray()
Properties summary
protected
mixed
|
$_modelName
Model name |
#
'shop'
|
public
integer
|
$img
Backend property |
#
1
|
public
string
|
$shop_currency_name
Backend property |
#
''
|
public
string
|
$img_transactions
Backend property |
#
0
|
public
string
|
$currency_name
Backend property |
#
NULL
|
protected
array
|
$_hasMany
One-to-many or many-to-many relations |
#
array(
'affiliate_plan' => array('through' => 'shop_affiliate_plan'),
'shop_affiliate_plan' => array(),
'shop_cart' => array(),
'shop_favorite' => array(),
'shop_compare' => array(),
'shop_delivery' => array(),
'shop_bonus' => array(),
'shop_discount' => array(),
'shop_group' => array(),
'shop_group_property' => array(),
'shop_group_property_dir' => array(),
'shop_item' => array(),
'shop_item_property' => array(),
'shop_item_property_dir' => array(),
'shop_order' => array(),
'shop_order_property' => array(),
'shop_order_property_dir' => array(),
'shop_payment_system' => array(),
'shop_print_form' => array(),
'shop_price' => array(),
'shop_producer' => array(),
'shop_producer_dir' => array(),
'shop_purchase_discount' => array(),
'shop_seller' => array(),
'shop_siteuser_transaction' => array(),
'shop_warehouse' => array(),
'shop_item_property_for_group' => array(),
'shop_item_delivery_option' => array(),
'deal' => array(),
'shop_discountcard' => array(),
'shop_discountcard_level' => array(),
'shop_discountcard_bonus_type' => array(),
'shop_price_setting' => array(),
'shop_filter_seo' => array(),
'shop_filter_seo_dir' => array(),
'shop_tab_dir' => array(),
'shop_tab' => array(),
'shop_comment_property' => array(),
'shop_comment_property_dir' => array(),
)
|
protected
array
|
$_preloadValues
List of preloaded values |
#
array(
'use_captcha' => 1,
'image_small_max_width' => 100,
'image_large_max_width' => 800,
'image_small_max_height' => 100,
'image_large_max_height' => 800,
'group_image_small_max_width' => 100,
'group_image_large_max_width' => 800,
'group_image_small_max_height' => 100,
'group_image_large_max_height' => 800,
'items_sorting_field' => 0,
'items_sorting_direction' => 0,
'groups_sorting_field' => 0,
'groups_sorting_direction' => 0,
'url_type' => 0,
'apply_tags_automatically' => 0,
'write_off_paid_items' => 0,
'comment_active' => 0,
'format_date' => '%d.%m.%Y',
'format_datetime' => '%d.%m.%Y %H:%M:%S',
'typograph_default_items' => 1,
'typograph_default_groups' => 1,
'watermark_default_position_x' => '50%',
'watermark_default_position_y' => '100%',
'preserve_aspect_ratio' => 1,
'items_on_page' => 10,
'reserve' => 0,
'reserve_hours' => 24,
'watermark_file' => '',
'producer_image_small_max_width' => 100,
'producer_image_large_max_width' => 800,
'producer_image_small_max_height' => 100,
'producer_image_large_max_height' => 800,
'discountcard_template' => '{this.id}',
'invoice_template' => '{this.id}'
)
|
protected
array
|
$_belongsTo
Belongs to relations |
#
array(
'shop_dir' => array(),
'site' => array(),
'structure' => array(),
'shop_country' => array(),
'shop_currency' => array(),
'shop_order_status' => array(),
'shop_codetype' => array(),
'shop_measure' => array(), // weight
'default_shop_measure' => array('model' => 'Shop_Measure', 'foreign_key' => 'default_shop_measure_id'), // item's default measure
'user' => array(),
'siteuser_group' => array(),
'shop_company' => array(), // old relation
'company' => array('foreign_key' => 'shop_company_id') // new relation
)
|
protected
array
|
$_shortcodeTags
List of Shortcodes tags |
#
array(
'description'
)
|
protected
array
|
$_forbiddenTags
Forbidden tags. If list of tags is empty, all tags will be shown. |
#
array(
'deleted',
'user_id',
'size_measure',
'yandex_market_name',
'items_sorting_direction',
'items_sorting_field',
'groups_sorting_direction',
'groups_sorting_field',
'image_large_max_width',
'image_large_max_height',
'image_small_max_width',
'image_small_max_height',
'siteuser_group_id',
'watermark_file',
'watermark_default_use_large_image',
'watermark_default_use_small_image',
'watermark_default_position_x',
'watermark_default_position_y',
'create_small_image',
'typograph_default_items',
'typograph_default_groups',
'apply_tags_automatically',
'change_filename',
'apply_keywords_automatically',
'group_image_small_max_width',
'group_image_large_max_width',
'group_image_small_max_height',
'group_image_large_max_height',
'producer_image_small_max_width',
'producer_image_large_max_width',
'producer_image_small_max_height',
'producer_image_large_max_height',
'preserve_aspect_ratio',
'preserve_aspect_ratio_small',
'preserve_aspect_ratio_group',
'preserve_aspect_ratio_group_small',
'seo_group_title_template',
'seo_group_keywords_template',
'seo_group_description_template',
'seo_item_title_template',
'seo_item_keywords_template',
'seo_item_description_template',
'order_admin_subject',
'order_user_subject',
'confirm_admin_subject',
'confirm_user_subject',
'cancel_admin_subject',
'cancel_user_subject',
'shop_order_status_id',
'send_order_email_admin',
'send_order_email_user',
'guid',
'yandex_market_sales_notes_default',
'filter'
)
|
protected
array
|
$_groupsTree
Tree of groups |
#
array()
|
protected
array
|
$_cacheGroups
Cache of groups |
#
array()
|
protected
array
|
$_cacheItems
Cache of items |
#
array()
|
protected
boolean
|
$_showXmlCounts
Calculate counts |
#
TRUE
|
protected
boolean
|
$_showXmlTaxes
Show taxes in XML |
#
FALSE
|
Properties inherited from Core_Entity
$_allowedTags,
$_cacheAllowedTags,
$_cacheFieldIDs,
$_cacheForbiddenTags,
$_cacheShortcodeTags,
$_changeCopiedName,
$_check,
$_childrenEntities,
$_clearEntitiesAfterGetXml,
$_hasRevisions,
$_marksDeleted,
$_nameColumn,
$_tagName,
$_typicalForbiddenTags,
$_xmlTags
Properties inherited from Core_ORM
$_bSetPreloadValues,
$_changedColumns,
$_columnCache,
$_columnCacheDefaultValues,
$_dataValues,
$_database,
$_databaseDriver,
$_hasOne,
$_loaded,
$_modelColumns,
$_primaryKey,
$_queryBuilder,
$_relationCache,
$_relationModelCache,
$_relations,
$_saved,
$_skipColumns,
$_sorting,
$_tableColumns,
$_tableName,
$cache,
$columnCache,
$config,
$relationCache