sDefer = ''; $this->sJavascriptURI = ''; $this->bInlineScript = false; } //-------------------------------------------------------------------------------------------------------------------------------- function getName() { return get_class( $this ); } //-------------------------------------------------------------------------------------------------------------------------------- public function configure( $sName, $mValue ) { switch ( $sName ) { case 'scriptDeferral': if ( true === $mValue || false === $mValue ) { if ( $mValue ) $this->sDefer = 'defer '; else $this->sDefer = ''; } break; case 'javascript URI': $this->sJavascriptURI = $mValue; break; case 'inlineScript': if ( true === $mValue || false === $mValue ) $this->bInlineScript = $mValue; break; case 'SWFupload_FadeTimeOut': if ( is_numeric( $mValue ) ) $this->SWFupload_FadeTimeOut = $mValue; break; } } //-------------------------------------------------------------------------------------------------------------------------------- public function generateClientScript() { echo "\n\n"; if ( $this->bInlineScript ) { echo "\n\n"; }else { echo "\n\n"; echo "\n\n"; } } //-------------------------------------------------------------------------------------------------------------------------------- function transForm( $id, $config, $multi = false ) { $command = array ( 'cmd' => 'SWFup_tfo', 'id' => $id ); $this->addCommand( $command, array ( "config" => $config, "multi" => $multi )); } //-------------------------------------------------------------------------------------------------------------------------------- function transField( $id, $config, $multi = false ) { $command = array ( 'cmd' => 'SWFup_tfi', 'id' => $id ); $this->addCommand( $command, array ( "config" => $config, "multi" => $multi )); } //-------------------------------------------------------------------------------------------------------------------------------- function destroyField( $id ) { $command = array ( 'cmd' => 'SWFup_dfi', 'id' => $id ); $this->addCommand( $command, array ()); } //-------------------------------------------------------------------------------------------------------------------------------- function destroyForm( $id ) { $command = array ( 'cmd' => 'SWFup_dfo', 'id' => $id ); $this->addCommand( $command, array ()); } //-------------------------------------------------------------------------------------------------------------------------------- } $objPluginManager = &xajaxPluginManager::getInstance(); $objPluginManager->registerPlugin( new clsSwfUpload(), 100 ); ?>