Public Member Functions | Public Attributes

YoutubeHelper Class Reference

Youtube helper class. More...

Inheritance diagram for YoutubeHelper:
AppHelper MediaProviderInterface

List of all members.

Public Member Functions

 isSourceAvailable (array $obj)
 Is Youtube video source available?
 thumbnail (array $obj, array $htmlAttributes, $URLonly)
 Return the thumbnail supplied by Youtube as.
 embed (array $obj, array $attributes)
 Embed Youtube video.
 source (array $obj)
 Source it's not available so it returns an empty array.

Public Attributes

 $helpers = array('Html')

Detailed Description

Youtube helper class.

Definition at line 31 of file youtube.php.


Member Function Documentation

YoutubeHelper::embed ( array $  obj,
array $  attributes 
)

Embed Youtube video.

Parameters:
array $obj a representation of Video BEdita object
array $attributes HTML attributes
Returns:
string|boolean

Implements MediaProviderInterface.

Definition at line 67 of file youtube.php.

References AppHelper::oEmbedInfo().

YoutubeHelper::isSourceAvailable ( array $  obj  ) 

Is Youtube video source available?

Parameters:
array $obj a representation of Video BEdita object
Returns:
boolean

Implements MediaProviderInterface.

Definition at line 41 of file youtube.php.

YoutubeHelper::source ( array $  obj  ) 

Source it's not available so it returns an empty array.

Parameters:
array $obj a representation of Video BEdita object
Returns:
array

Implements MediaProviderInterface.

Definition at line 95 of file youtube.php.

YoutubeHelper::thumbnail ( array $  obj,
array $  htmlAttributes,
URLonly 
)

Return the thumbnail supplied by Youtube as.

tag If $URLonly is true return only the url to img

Parameters:
array $obj a representation of Video BEdita object
array $htmlAttributes HTML attributes to set in tag
boolean $URLonly
Returns:
string

Implements MediaProviderInterface.

Definition at line 54 of file youtube.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus