Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • ActionActiveForm
  • ActionActiveFormBase
  • CActiveForm
  • CalendarEventActiveForm
  • CallActiveForm
  • CClipWidget
  • CContentDecorator
  • CFilterWidget
  • CFlexWidget
  • CHtmlPurifier
  • CInputWidget
  • CMarkdown
  • CMaskedTextField
  • CMultiFileUpload
  • COutputCache
  • COutputProcessor
  • CStarRating
  • CTabView
  • CTextHighlighter
  • CTreeView
  • CWidget
  • EventActiveForm
  • MobileActiveForm
  • NoteActiveForm
  • TimeActiveForm
  • X2ActiveForm
  • X2StarRating
  • Overview
  • Package
  • Class
  • Tree

Class CFlexWidget

CFlexWidget embeds a Flex 3.x application into a page.

To use CFlexWidget, set CFlexWidget::$name to be the Flex application name (without the .swf suffix), and set CFlexWidget::$baseUrl to be URL (without the ending slash) of the directory containing the SWF file of the Flex application.

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CFlexWidget
Package: system\web\widgets
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/web/widgets/CFlexWidget.php
Methods summary
public
# run( )

Renders the widget.

Renders the widget.

Overrides

CWidget::run()
public
# registerClientScript( )

Registers the needed CSS and JavaScript.

Registers the needed CSS and JavaScript.

public string
# getFlashVarsAsString( )

Generates the properly quoted flash parameter string.

Generates the properly quoted flash parameter string.

Returns

string
the flash parameter string.
Methods inherited from CWidget
__construct(), actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), init(), render(), setId()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal(), widget()
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()
Properties summary
public string $name
#

name of the Flex application. This should be the SWF file name without the ".swf" suffix.

name of the Flex application. This should be the SWF file name without the ".swf" suffix.

public string $baseUrl
#

the base URL of the Flex application. This refers to the URL of the directory containing the SWF file.

the base URL of the Flex application. This refers to the URL of the directory containing the SWF file.

public string $width '100%'
#

width of the application region. Defaults to 450.

width of the application region. Defaults to 450.

public string $height '100%'
#

height of the application region. Defaults to 300.

height of the application region. Defaults to 300.

public string $quality 'high'
#

quality of the animation. Defaults to 'high'.

quality of the animation. Defaults to 'high'.

public string $bgColor '#FFFFFF'
#

background color of the application region. Defaults to '#FFFFFF', meaning white.

background color of the application region. Defaults to '#FFFFFF', meaning white.

public string $align 'middle'
#

align of the application region. Defaults to 'middle'.

align of the application region. Defaults to 'middle'.

public string $allowScriptAccess 'sameDomain'
#

the access method of the script. Defaults to 'sameDomain'.

the access method of the script. Defaults to 'sameDomain'.

public boolean $allowFullScreen false
#

whether to allow running the Flash in full screen mode. Defaults to false.

whether to allow running the Flash in full screen mode. Defaults to false.

Since

1.1.1
public string $altHtmlContent
#

the HTML content to be displayed if Flash player is not installed.

the HTML content to be displayed if Flash player is not installed.

public boolean $enableHistory true
#

whether history should be enabled. Defaults to true.

whether history should be enabled. Defaults to true.

public array $flashVars array()
#

parameters to be passed to the Flex application.

parameters to be passed to the Flex application.

Properties inherited from CWidget
$actionPrefix, $skin
Magic properties summary
public string $flashVarsAsString
#

The flash parameter string.

The flash parameter string.

Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
API documentation generated by ApiGen 2.8.0