YiiFoundation
  • Namespace
  • Class
  • Tree

Namespaces

  • foundation
    • enum
    • exception
    • helpers
    • widgets
      • base
  • PHP

Classes

  • Alert
  • Breadcrumbs
  • Clearing
  • Dropdown
  • FlexVideo
  • Interchange
  • JoyRide
  • Magellan
  • Orbit
  • Pager
  • Reveal
  • Section
  • SwitchButton
  • Tooltip
  • TopBar

Class FlexVideo

FlexVideo embeds a video from YouTube, Vimeo or another site that uses iframe, embed or object elements, creating an intrinsic ration that will properly scale the video to any device.

CWidget
Extended by foundation\widgets\base\Widget
Extended by foundation\widgets\FlexVideo
Namespace: foundation\widgets
Package: foundation\widgets
Author: Antonio Ramirez <amigo.cobos@gmail.com>
See: http://foundation.zurb.com/docs/components/flex-video.html
Located at widgets/FlexVideo.php

Methods summary

public
# init( )

Initializes the widget

Initializes the widget

Throws

foundation\exception\InvalidConfigException

Overrides

foundation\widgets\base\Widget::init
public
# run( )

Renders the widget

Renders the widget

public string
# renderVideo( )

Renders video

Renders video

Returns

string
the resulting tag

Methods inherited from foundation\widgets\base\Widget

display(), registerAssets(), registerEvents(), registerPlugin()

Magic methods summary

Properties summary

public string $source
#

the source of the video

the source of the video

public integer $width
#

the width of the video

the width of the video

public integer $height
#

the height of the video

the height of the video

public boolean $allowFullScreen
#

whether to allow fullscreen or not

whether to allow fullscreen or not

public boolean $widescreen
#

whether to give the player a widescreen aspect ratio or not

whether to give the player a widescreen aspect ratio or not

public boolean $vimeo
#

whether to ensure not adding extra padding since Vimeo has control with the player, itself

whether to ensure not adding extra padding since Vimeo has control with the player, itself

Properties inherited from foundation\widgets\base\Widget

$assets, $htmlOptions, $links

YiiFoundation API documentation generated by ApiGen 2.8.0