Class P3MetaDataBehavior
Meta Data behavior
Handles meta data attributes such as- status language owner createdAt createdBy model modifiedAt modifiedBy
- CComponent
-
CBehavior implements IBehavior
-
CModelBehavior
-
CActiveRecordBehavior
-
P3MetaDataBehavior
Copyright: Copyright © 2005-2011 diemeisterei GmbH
License: http://www.phundament.com/license/
Author: Tobias Munk <schmunk@usrbin.de>
Since: 3.0.1
Located at phundament/p3extensions/behaviors/P3MetaDataBehavior.php
Methods summary
public
|
|
public
|
|
public
|
#
beforeFind( CEvent $event )
Responds to CActiveRecord::onBeforeFind event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. |
public
type
|
|
public
type
|
|
public
type
|
Methods inherited from CActiveRecordBehavior
afterDelete()
,
afterFind()
,
events()
Methods inherited from CModelBehavior
afterConstruct()
,
afterValidate()
,
beforeValidate()
Methods inherited from CBehavior
attach()
,
detach()
,
getEnabled()
,
getOwner()
,
setEnabled()
Methods inherited from CComponent
__call()
,
__get()
,
__isset()
,
__set()
,
__unset()
,
asa()
,
attachBehavior()
,
attachBehaviors()
,
attachEventHandler()
,
canGetProperty()
,
canSetProperty()
,
detachBehavior()
,
detachBehaviors()
,
detachEventHandler()
,
disableBehavior()
,
disableBehaviors()
,
enableBehavior()
,
enableBehaviors()
,
evaluateExpression()
,
getEventHandlers()
,
hasEvent()
,
hasEventHandler()
,
hasProperty()
,
raiseEvent()
Magic methods summary
Constants summary
integer |
STATUS_DELETED
|
0 |
|
integer |
STATUS_DRAFT
|
10 |
|
integer |
STATUS_PENDING
|
20 |
|
integer |
STATUS_ACTIVE
|
30 |
|
integer |
STATUS_LOCKED
|
40 |
|
integer |
STATUS_HIDDEN
|
50 |
|
integer |
STATUS_ARCHIVE
|
60 |
Properties summary
public
string
|
$metaDataRelation |
#
Name of the relation identifier in the 'parent' model |
public
string
|
$contentRelation |
#
Name of the relation in the meta data model to the 'parent' model |
public
type
|
$parentRelation |
#
Name of the internal meta data parent(-child) relation |
public
type
|
$childrenRelation |
#
Name of the internal meta data (parent-)child relation |
Magic properties inherited from CActiveRecordBehavior
$owner
Magic properties inherited from CBehavior
$enabled