Public Member Functions | Protected Member Functions

AppHelper Class Reference

Helper base class contains common helpers methods. More...

Inheritance diagram for AppHelper:
BeEmbedFlashHelper BeEmbedHtml5Helper BeEmbedMediaHelper BeFrontHelper BeToolbarHelper BeTreeHelper BeurlHelper GravatarHelper ImageInfoHelper PermsHelper SessionFilterHelper ThumbnailHelper TrHelper VimeoHelper YoutubeHelper

List of all members.

Public Member Functions

 getHelper ($name)
 try to get from the registry the helper instance.

Protected Member Functions

 oEmbedInfo ($url, $arrayFrom= 'json')
 return oEmbed format (see http://www.oembed.com)

Detailed Description

Helper base class contains common helpers methods.

Definition at line 28 of file app_helper.php.


Member Function Documentation

AppHelper::getHelper ( name  ) 

try to get from the registry the helper instance.

Eventually instance a new helper object ant put it in the registry

Parameters:
$name,helper name without suffix Helper (i.e. GravatarHelper => $name=Gravatar)
Returns:
$nameHelper instance

Definition at line 36 of file app_helper.php.

AppHelper::oEmbedInfo ( url,
arrayFrom = 'json' 
) [protected]

return oEmbed format (see http://www.oembed.com)

Parameters:
$url,URL on third party sites
$arrayFrom,specify which format is expected (json, xml) to build array in the right way if != "json" and != "xml" return original oEmbed format (i.e. JSON object or XML)
Returns:
array

Definition at line 78 of file app_helper.php.

Referenced by YoutubeHelper::embed(), VimeoHelper::embed(), and VimeoHelper::thumbnail().


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