Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • P3CryptBehavior
  • P3FileUploadBehavior
  • P3JSONBehavior
  • P3LoggableBehavior
  • P3MetaDataBehavior
  • P3TranslationBehavior

Class P3MetaDataBehavior

Meta Data behavior

Handles meta data attributes such as
  • status language owner createdAt createdBy model modifiedAt modifiedBy
CComponent
Extended by CBehavior implements IBehavior
Extended by CModelBehavior
Extended by CActiveRecordBehavior
Extended by P3MetaDataBehavior
Package: p3extensions\behaviors
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
# getChildren( )
public
# getParent( )
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.

Responds to CActiveRecord::onBeforeFind event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner.

Parameters

$event
CEvent
$event event parameter

Overrides

CActiveRecordBehavior::beforeFind
public type
# beforeDelete( type $event )

Checks permissions in attribute checkAccessDelete

Checks permissions in attribute checkAccessDelete

Parameters

$event
type
$event

Returns

type

Overrides

CActiveRecordBehavior::beforeDelete
public type
# beforeSave( type $event )

Checks permissions in attribute checkAccessUpdate

Checks permissions in attribute checkAccessUpdate

Parameters

$event
type
$event

Returns

type

Overrides

CActiveRecordBehavior::beforeSave
public type
# afterSave( type $event )

Creates meta data for new records or updates modified attributes when saving

Creates meta data for new records or updates modified attributes when saving

Parameters

$event
type
$event

Returns

type

Overrides

CActiveRecordBehavior::afterSave

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

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

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

Name of the internal meta data parent(-child) relation

public type $childrenRelation
#

Name of the internal meta data (parent-)child relation

Name of the internal meta data (parent-)child relation

Magic properties inherited from CActiveRecordBehavior

$owner

Magic properties inherited from CBehavior

$enabled

Phundament App Class Reference API documentation generated by ApiGen 2.8.0