static string
_regDelimStripper
(string $s)
static string
_regImploder
(array $r)
Constructor.
initialize object.
void
__construct
(string $url, [integer $maxwidth = ''], [integer $maxheight = ''], [ $embedlyKey = ''])
-
string
$url: the url of the distant oembed resource to get
-
integer
$maxwidth: the max width to apply to distant oembed resource (optional)
-
integer
$maxheight: the max height to apply to distant oembed resource (optional)
-
$embedlyKey
Get datas for current media
array
getData
( $name)
Get current media datas from provider
array
getDatas
()
Get HTML embed code for current media
string
getHTML
([array $attributes = array()], [boolean $inframe = false])
-
array
$attributes: the html attributes to add to returned code
-
boolean
$inframe: does the HTML should be returned into an iframe ? (default false)
Get current provider using media URL.
string
getProvider
()
Get provider name for current media
string
getProviderName
()
Get thumbnial HTML code for current media
string
getThumbnail
([array $attributes = array()])
-
array
$attributes: the html attributes to add to returned code
Get title for current media
string
getTitle
()
Does current oembed object has provider
boolean
hasProvider
()
Add wmode transparent to flash embed code
string
_addWmode
(string $html)
-
string
$html: the html code to transform
Use embed.ly regexp service to check URL
boolean
_embedlySupported
()
Get iframe code for current html embed code
string
_getIframe
(string $style, string $attr)
-
string
$style: the html style code to add
-
string
$attr: the html attributes code to add
Get current provider using media URL.
boolean
_getProvider
()
Retrieve current media datas from provider
boolean
_retrieveDatas
()
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()