Class BeditaProductModel
Base class for products
- Model
- AppModel
- BEAppModel
- BEAppObjectModel
- BeditaProductModel
Located at app_model.php
Methods summary
Methods inherited from BEAppObjectModel
apiTransformer()
,
arrangeDataForClone()
,
checkType()
,
cloneObject()
,
field()
,
getTypeId()
,
save()
,
saveField()
,
updateHasManyAssoc()
,
validateContent()
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
email()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Properties summary
public
array
|
$searchFields
|
#
array(
"title" => 10,
"nickname" => 8,
"description" => 6,
"abstract" => 4,
"body" => 4,
"note" => 2
)
|
protected
array
|
$modelBindings
|
#
array(
'detailed' => array(
'BEObject' => array(
'ObjectType',
'Permission',
'UserCreated',
'UserModified',
'RelatedObject',
'ObjectProperty',
'LangText',
'Category',
'Annotation',
'Alias',
'Version' => array('User.realname', 'User.userid')
),
'Product'
),
'default' => array(
'BEObject' => array(
'ObjectProperty',
'LangText',
'ObjectType'
),
'Product'
),
'minimum' => array(
'BEObject' => array('ObjectType'),
'Product'
),
'frontend' => array(
'BEObject' => array(
'LangText',
'ObjectProperty',
'RelatedObject',
'Category',
'Annotation',
'GeoTag'
),
'Product'
),
'api' => array(
'BEObject' => array(
'LangText',
'ObjectProperty',
'Category',
'GeoTag'
),
'Product'
)
)
|
public
array
|
$actsAs
|
#
array(
'Callback',
'CompactResult' => array(),
'SearchTextSave' => array(),
'ForeignDependenceSave' => array('BEObject', 'Product'),
'DeleteObject' => 'objects',
'Notify'
)
|
public
array
|
$hasOne
|
#
array(
'BEObject' =>
array(
'className' => 'BEObject',
'conditions' => '',
'foreignKey' => 'id',
'dependent' => true
),
'Product' =>
array(
'className' => 'Product',
'conditions' => '',
'foreignKey' => 'id',
'dependent' => true
)
)
|