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 P3FileUploadBehavior

Behavior, handles file uploads

Note: This behavior currently requires a set of fixed attribute names within the model (path, mimeType, title, size, originalName, md5).

CComponent
Extended by CBehavior implements IBehavior
Extended by CModelBehavior
Extended by CActiveRecordBehavior
Extended by P3FileUploadBehavior
Package: p3extensions\behaviors
Copyright: Copyright © 2005-2010 diemeisterei GmbH
License: http://www.phundament.com/license/
Author: Tobias Munk <schmunk@usrbin.de>
Since: 3.0.1
Located at phundament/p3extensions/behaviors/P3FileUploadBehavior.php

Methods summary

public
# afterValidate( type $event )

Stores file in appropriate directory and updates owner record with info about the file.

Stores file in appropriate directory and updates owner record with info about the file.

Parameters

$event
type
$event

Overrides

CModelBehavior::afterValidate
public
# beforeDelete( CEvent $event )

Responds to CActiveRecord::onBeforeDelete event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to quit the deletion process.

Responds to CActiveRecord::onBeforeDelete event. Overrides this method if you want to handle the corresponding event of the CBehavior::owner owner. You may set CModelEvent::isValid to be false to quit the deletion process.

Parameters

$event
CEvent
$event event parameter

Overrides

CActiveRecordBehavior::beforeDelete
public
# afterDelete( CEvent $event )

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

Responds to CActiveRecord::onAfterDelete 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::afterDelete

Methods inherited from CActiveRecordBehavior

afterFind(), afterSave(), beforeFind(), beforeSave(), events()

Methods inherited from CModelBehavior

afterConstruct(), 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

string TRASH_FOLDER 'trash'
#

Properties summary

public mixed $uploadInstance
#
public type $dataAlias
#

Yii path alias, where to store files

Yii path alias, where to store files

public type $dataSubdirectory
#

Subdirectory for uploaded files (e.g. user directories)

Subdirectory for uploaded files (e.g. user directories)

public type $trashAlias
#

Yii path alias, where to move delted files

Yii path alias, where to move delted files

Magic properties inherited from CActiveRecordBehavior

$owner

Magic properties inherited from CBehavior

$enabled

Phundament App Class Reference API documentation generated by ApiGen 2.8.0