Class BEAppObjectModel
BEdita base app object class. BEdita objects should extend BEAppObjectModel
- Model
- AppModel
- BEAppModel
- BEAppObjectModel
Direct known subclasses
BeditaAnnotationModel
,
BeditaCollectionModel
,
BeditaContentModel
,
BeditaProductModel
,
BeditaSimpleObjectModel
,
BeditaSimpleStreamModel
,
BeditaStreamModel
,
Card
,
Link
Indirect known subclasses
Application
,
Area
,
Gallery
,
Image
,
MailMessage
,
MailTemplate
,
Section
,
ShortNews
,
Video
,
Audio
,
BeditaObjectModel
,
BEFile
,
Caption
,
Comment
,
Document
,
EditorNote
,
Event
Methods summary
public
|
|
public
|
|
public
|
|
public
type
|
#
cloneObject( integer $id, array $options = array() )
Clone a BEdita object starting from object id It should be called from a BEdita object model as Document, Section, etc... |
public
|
#
arrangeDataForClone( array & $data, array $options = array() )
Arrange an array to cloning a BEdita object |
protected
boolean
|
#
updateHasManyAssoc( )
Updates hasMany model rows: * delete all rows of hasMany models except ones with "id" set in $data array * saves/updates all hasMany data rows from $data array |
protected
|
|
public
|
|
public
|
|
public
array
|
#
apiTransformer( array $options = array() )
Return an array of column types to transform (cast) for generic BEdita object type Used to build consistent REST APIs |
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
integer
|
$recursive
|
#
2
|
public
array
|
$actsAs
|
#
array(
'Callback',
'CompactResult' => array(),
'SearchTextSave',
'RevisionObject',
'ForeignDependenceSave' => array('BEObject'),
'DeleteObject' => 'objects',
'Notify'
)
|
public
array
|
$hasOne
|
#
array(
'BEObject' =>
array(
'className' => 'BEObject',
'conditions' => '',
'foreignKey' => 'id',
'dependent' => true
)
)
|
public
array
|
$objectTypesGroups
|
#
array()
|