Class Shop_Item_Model
Shop_Item_Model
- Core_ORM
- Core_Entity
- Shop_Item_Model
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at shop/item/model.php
Methods summary
public
|
|
public
boolean
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
array
|
#
getPropertyValues( boolean $bCache = TRUE, array $aPropertiesId = array() )
Values of all properties of item Значения всех свойств товара |
protected
|
|
public
|
|
public
array
|
|
public
array
|
|
public
float
|
|
public
|
|
public
float
|
|
public
float
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
integer
|
|
public
Search_Page
|
|
public
string
|
#
adminStatus( Admin_Form_Field $oAdmin_Form_Field,
Backend callback method |
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
array
|
|
public
|
#
getByGroupIdAndPath( integer $group_id, string $path, boolean $bCache,… )
Get item by group id and path |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
showXmlSiteuserProperties( boolean $showXmlSiteuserProperties = TRUE )
Show siteuser properties in XML |
public
|
#
showXmlCommentProperties( boolean $showXmlCommentProperties = TRUE )
Show siteuser properties in XML |
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
stdObject
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
string
|
#
adminCurrencyBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
relatedBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
modificationsBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
discountsBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
reviewsBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
string
|
#
adminPriceBadge( Admin_Form_Field $oAdmin_Form_Field,
Backend badge |
public
|
|
public
|
|
public
string
|
|
public
decimal
|
|
public
string
|
#
propertyValue( integer $property_id, strint $format = '%2$s', string $separator = ', ' )
Get property value for SEO-templates |
public
|
|
public
|
|
public
boolean
|
Methods inherited from Core_Entity
__call()
,
_getCopiedName()
,
addAllowedTag()
,
addEntities()
,
addEntity()
,
addForbiddenTag()
,
addForbiddenTags()
,
addXmlTag()
,
applyMarksDeleted()
,
changeCopiedName()
,
clear()
,
clearEntities()
,
clearEntitiesAfterGetXml()
,
clearXmlTags()
,
factory()
,
find()
,
findAll()
,
getCount()
,
getEntities()
,
getFieldIDs()
,
getFields()
,
getForbiddenTags()
,
getMarksDeleted()
,
getName()
,
getNameColumn()
,
getRelations()
,
getTableColums()
,
getTrashDescription()
,
getXmlTagName()
,
getXmlTags()
,
removeForbiddenTag()
,
setCheck()
,
setMarksDeleted()
,
setXmlTagName()
,
undelete()
,
update()
Methods inherited from Core_ORM
__clone()
,
__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_item'
|
public
integer
|
$related
Callback property_id |
#
1
|
public
integer
|
$modifications
Callback property_id |
#
1
|
public
integer
|
$discounts
Callback property_id |
#
1
|
public
integer
|
$reviews
Callback property_id |
#
1
|
public
string
|
$key
Callback property_id |
#
NULL
|
public
string
|
$count
Callback property_id |
#
NULL
|
public
string
|
$absolute_price
Callback property_id |
#
NULL
|
public
|
$price_absolute
|
#
NULL
|
public
string
|
$adminRest
Callback property_id |
#
NULL
|
protected
array
|
$_hasOne
One-to-one relations |
#
array(
'shop_item_certificate' => array()
)
|
protected
array
|
$_hasMany
One-to-many or many-to-many relations |
#
array(
'shop_cart' => array(),
'comment' => array('through' => 'comment_shop_item'),
'shop_bonus' => array('through' => 'shop_item_bonus'),
'shop_discount' => array('through' => 'shop_item_discount'),
'shop_item_bonus' => array(),
'shop_item_discount' => array(),
'shop_item_digital' => array(),
'shop_item' => array('foreign_key' => 'shortcut_id'),
'modification' => array('model' => 'Shop_Item', 'foreign_key' => 'modification_id'),
'shop_price' => array('through' => 'shop_item_price'),
'shop_item_price' => array(),
'item_associated' => array('through' => 'shop_item_associated', 'through_table_name' => 'shop_item_associated', 'model' => 'Shop_Item', 'dependent_key' => 'shop_item_associated_id'),
'shop_item_associated' => array(),
'shop_item_associated_second' => array('model' => 'Shop_Item_Associated', 'foreign_key' => 'shop_item_associated_id'),
'shop_item_set' => array(),
'shop_item_set_second' => array('model' => 'Shop_Item_Set', 'foreign_key' => 'shop_item_set_id'),
'shop_specialprice' => array(),
'shop_item_reserved' => array(),
'tag' => array('through' => 'tag_shop_item'),
'tag_shop_item' => array(),
'shop_warehouse' => array('through' => 'shop_warehouse_item'),
'shop_warehouse_item' => array(),
'vote' => array('through' => 'vote_shop_item'),
'shop_item_delivery_option' => array(),
'shop_favorite' => array(),
'shop_item_barcode' => array(),
'shop_warehouse_entry' => array(),
'shop_warehouse_incoming_item' => array(),
'shop_warehouse_inventory_item' => array(),
'shop_warehouse_writeoff_item' => array(),
'shop_warehouse_regrade_incoming_item' => array('model' => 'Shop_Warehouse_Regrade_Item', 'foreign_key' => 'incoming_shop_item_id'),
'shop_warehouse_regrade_writeoff_item' => array('model' => 'Shop_Warehouse_Regrade_Item', 'foreign_key' => 'writeoff_shop_item_id'),
'shop_price_entry' => array(),
'shop_price_setting_item' => array(),
'shop_warehouse_cell_item' => array(),
'shop_tab' => array('through' => 'shop_tab_item'),
'shop_tab_item' => array(),
'shop_item_certificate' => array(),
)
|
protected
array
|
$_preloadValues
List of preloaded values |
#
array(
'shortcut_id' => 0,
'siteuser_id' => 0,
'weight' => 0,
'price' => 0,
'sorting' => 0,
'image_small_height' => 0,
'image_small_width' => 0,
'image_large_height' => 0,
'image_large_width' => 0,
'yandex_market' => 1,
'yandex_market_bid' => 0,
'yandex_market_cid' => 0,
'active' => 1,
'indexing' => 1,
'modification_id' => 0,
'shop_measure_id' => 0,
'length' => 0,
'width' => 0,
'height' => 0,
'apply_purchase_discount' => 1,
'showed' => 0
)
|
protected
array
|
$_belongsTo
Belongs to relations |
#
array(
'shop_measure' => array(),
'shop_tax' => array(),
'siteuser_group' => array(),
'shop_seller' => array(),
'shop_group' => array(),
'shop_currency' => array(),
'shop' => array(),
'shop_producer' => array(),
'siteuser' => array(),
'shop_item' => array('foreign_key' => 'shortcut_id'),
'modification' => array('model' => 'Shop_Item', 'foreign_key' => 'modification_id'),
'user' => array()
)
|
protected
array
|
$_forbiddenTags
Forbidden tags. If list of tags is empty, all tags will be shown. |
#
array(
'deleted',
'user_id',
'price',
'datetime',
'start_datetime',
'end_datetime',
'yandex_market',
'yandex_market_bid',
'yandex_market_cid',
'yandex_market_sales_notes',
'apply_purchase_discount',
)
|
protected
array
|
$_shortcodeTags
List of Shortcodes tags |
#
array(
'description',
'text'
)
|
protected
boolean
|
$_hasRevisions
Has revisions |
#
TRUE
|
protected
boolean
|
$_incCountByCreate
Inc items'count in group during creating item |
#
TRUE
|
protected
array
|
$_propertyValues
Values of all properties of item |
#
NULL
|
protected
|
$_Shop_Item_Controller
|
#
NULL
|
protected
mixed
|
$_rest
Cache for getRest() |
#
NULL
|
protected
mixed
|
$_reserved
Cache for getRest() |
#
NULL
|
protected
boolean
|
$_showXmlBonuses
Show bonuses in XML |
#
FALSE
|
protected
boolean
|
$_showXmlBarcodes
Show barcodes in XML |
#
FALSE
|
protected
boolean
|
$_showXmlComments
Show comments data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlCommentsRating
Show comments rating data in XML |
#
FALSE
|
protected
string
|
$_commentsActivity
What comments show in XML? (active|inactive|all) |
#
'active'
|
protected
boolean
|
$_showXmlTabs
Show tabs data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlAssociatedItems
Show associated items data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlModifications
Show modifications data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlSpecialprices
Show special prices data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlTags
Show tags data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlWarehousesItems
Show items count data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlSiteuser
Show user data in XML |
#
FALSE
|
protected
boolean
|
$_showXmlVotes
Show votes in XML |
#
FALSE
|
protected
boolean
|
$_showXmlSets
Show sets in XML |
#
TRUE
|
protected
boolean
|
$_showXmlSiteuserProperties
Show siteuser properties in XML |
#
FALSE
|
protected
boolean
|
$_showXmlCommentProperties
Show siteuser properties in XML |
#
FALSE
|
protected
mixed
|
$_showXmlProperties
Show properties in XML |
#
FALSE
|
protected
integer
|
$_cartQuantity
Количество товара в корзине |
#
1
|
protected
array
|
$_aComments
Array of comments, [parent_id] => array(comments) |
#
array()
|
Properties inherited from Core_Entity
$_allowedTags
,
$_cacheAllowedTags
,
$_cacheFieldIDs
,
$_cacheForbiddenTags
,
$_cacheShortcodeTags
,
$_changeCopiedName
,
$_check
,
$_childrenEntities
,
$_clearEntitiesAfterGetXml
,
$_marksDeleted
,
$_nameColumn
,
$_tagName
,
$_typicalForbiddenTags
,
$_xmlTags
Properties inherited from Core_ORM
$_bSetPreloadValues
,
$_changedColumns
,
$_columnCache
,
$_columnCacheDefaultValues
,
$_dataValues
,
$_database
,
$_databaseDriver
,
$_loaded
,
$_modelColumns
,
$_primaryKey
,
$_queryBuilder
,
$_relationCache
,
$_relationModelCache
,
$_relations
,
$_saved
,
$_skipColumns
,
$_sorting
,
$_tableColumns
,
$_tableName
,
$cache
,
$columnCache
,
$config
,
$relationCache