Class FileUploader
Widget to upload files via AJAX.
- CComponent
- 
			 CBaseController CBaseController
- 
			 CWidget CWidget
- 
			 X2Widget X2Widget
- 
			 FileUploader FileUploader
Direct known subclasses
ModelFileUploader
		
		
		
		Package: application\components
Author: Alex Rowe <alex@x2engine.com> Examples Usage: widget('FileUploader', array( 'id' => 'myFileUploader', 'mediaParams' => array ( 'associationType' => 'Contacts', 'associationId' => 23 ), 'viewParams' => array ( 'showButton' => false ), 'events' => array ( 'success' => 'console.log("success")' ) 'acceptedFiles' => 'image/*' )); How to access in Javascript: x2.FileUploader.list['myFileUploader'] See js/FileUploader.js for Javascript Examples
Located at x2engine/protected/components/FileUploader.php
	
	Author: Alex Rowe <alex@x2engine.com> Examples Usage: widget('FileUploader', array( 'id' => 'myFileUploader', 'mediaParams' => array ( 'associationType' => 'Contacts', 'associationId' => 23 ), 'viewParams' => array ( 'showButton' => false ), 'events' => array ( 'success' => 'console.log("success")' ) 'acceptedFiles' => 'image/*' )); How to access in Javascript: x2.FileUploader.list['myFileUploader'] See js/FileUploader.js for Javascript Examples
Located at x2engine/protected/components/FileUploader.php
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | |
| 
			 public 
			
			
			 | 
| 
			__construct(), 
			ajaxRender(), 
			behaviors(), 
			getModule(), 
			renderFile(), 
			setModule()
		 | 
| 
actions(), 
getController(), 
getId(), 
getOwner(), 
getViewFile(), 
getViewPath(), 
render(), 
setId()
		 | 
| 
beginCache(), 
beginClip(), 
beginContent(), 
beginWidget(), 
createWidget(), 
endCache(), 
endClip(), 
endContent(), 
endWidget(), 
renderInternal(), 
widget()
		 | 
| 
__call(), 
__get(), 
__isset(), 
__set(), 
__unset(), 
asa(), 
attachBehavior(), 
attachBehaviors(), 
attachEventHandler(), 
canGetProperty(), 
canSetProperty(), 
detachBehavior(), 
detachBehaviors(), 
detachEventHandler(), 
disableBehavior(), 
disableBehaviors(), 
enableBehavior(), 
enableBehaviors(), 
evaluateExpression(), 
getEventHandlers(), 
hasEvent(), 
hasEventHandler(), 
hasProperty(), 
raiseEvent()
		 | 
| 
			public static 
			integer
		 | $instanceCount | 0 | 
			#
			 Static counter for number of instances | 
| 
			public static 
			array
		 | $defaultViewParams | array (
    'class' => '',
    'noPadding' => false,
    'showButton' => true,
    'open' => false,
    'closeButton' => true,
    'buttonText' => null,
) | 
			#
			 Config array of extra options to be sent to viewFile | 
| 
			public  
			string
		 | $JSClass | 'FileUploader' | |
| 
			public  
			string
		 | $viewFile | 'fileUploader' | |
| 
			public  
			string
		 | $id |  | 
			#
			 Id / Namespace of this instance. Used to create a unique ID, and to reference | 
| 
			public  
			string
		 | $url | '/site/upload' | 
			#
			 Url to upload media to | 
| 
			public  
			array
		 | $googleDrive | true | 
			#
			 Wether to allow Google Drive | 
| 
			public  
			array
		 | $mediaParams | array() | 
			#
			 Array of model attributes to set to uploaded files | 
| 
			public  
			array
		 | $viewParams | array() | 
			#
			 Array of model attributes to set to uploaded files | 
| 
			public  
			array
		 | $events | array(
    // 'success' => 'console.log(this)'
) | 
			#
			 Array of Javascript snippets | 
| 
			public  
			string
		 | $acceptedFiles | '' | 
| 
			$_module
		 | 
| 
$actionPrefix, 
$skin
		 | 
| 
			$module
		 | 
| 
$controller, 
$id, 
$owner, 
$viewPath
		 |