Class BEObject
BEObject class
- Model
- AppModel
- BEAppModel
- BEObject
Located at models/objects/b_e_object.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
#
updateTitleDescription( integer $id, string|null $title, string|null $description )
Update title and description only. |
private
string
|
|
private
|
|
private
|
|
private
integer
|
#
_getIDCurrentUser( )
Returns the current user ID. If a unit test is running, the test user ID is returned instead. |
private
boolean
|
|
private
|
|
public
|
|
public
|
|
public
|
|
public
array
|
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Methods inherited from AppModel
Properties summary
public
array
|
$actsAs
|
#
array('Cacheable')
|
public
string
|
$name
|
#
'BEObject'
|
public
string
|
$useTable
|
#
"objects"
|
private
string
|
$defaultIp
|
#
"::1"
|
public
array
|
$validate
|
#
array(
// 'title' => array(
// 'rule' => 'notEmpty'
// ),
'object_type_id' => array(
'rule' => 'notEmpty'
),
'nickname' => array(
'rule' => 'notEmpty'
),
'lang' => array(
'rule' => 'notEmpty'
),
'ip_created' => array(
'rule' => 'ip'
),
'status' => array(
'rule' => array('inList', array('on', 'off', 'draft'))
),
)
|
public
array
|
$belongsTo
|
#
array(
'ObjectType' =>
array(
'className' => 'ObjectType',
'foreignKey' => 'object_type_id',
'conditions' => ''
),
'UserCreated' =>
array(
'className' => 'User',
'fields' => 'id, userid, realname',
'foreignKey' => 'user_created',
),
'UserModified' =>
array(
'className' => 'User',
'fields' => 'id, userid, realname',
'foreignKey' => 'user_modified',
),
)
|
public
array
|
$hasMany
|
#
array(
'Permission',
'Version' =>
array(
'className' => 'Version',
'foreignKey' => 'object_id',
'dependent' => true
),
'ObjectProperty' =>
array(
'className' => 'ObjectProperty',
'foreignKey' => 'object_id',
'dependent' => true
),
'SearchText' =>
array(
'foreignKey' => 'object_id',
'dependent' => true
),
'LangText' =>
array(
'className' => 'LangText',
'foreignKey' => 'object_id',
'dependent' => true
),
'Annotation' =>
array(
'foreignKey' => 'object_id',
'dependent' => true
),
'RelatedObject' =>
array(
'className' => 'ObjectRelation',
'joinTable' => 'object_relations',
'foreignKey' => 'id',
'associationForeignKey' => 'object_id',
'order' => 'priority'
),
'Alias',
'GeoTag' =>
array(
'foreignKey' => 'object_id',
'dependent' => true
)
)
|
public
array
|
$hasAndBelongsToMany
|
#
array(
'Category' =>
array(
'className' => 'Category',
'joinTable' => 'object_categories',
'foreignKey' => 'object_id',
'associationForeignKey' => 'category_id',
'unique' => true
),
'User' =>
array(
'className' => 'User',
'joinTable' => 'object_users',
'foreignKey' => 'object_id',
'associationForeignKey' => 'user_id',
'unique' => true,
'with' => 'ObjectUser'
)
)
|