OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Application\Model\MediaUrl Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Application\Model\MediaUrl:
+ Collaboration diagram for OxidEsales\EshopCommunity\Application\Model\MediaUrl:

Public Member Functions

 __construct ()
 
 getHtml ()
 
 getHtmlLink ($blNewPage=true)
 
 getLink ()
 
 getObjectId ()
 
 delete ($sOXID=null)
 

Protected Member Functions

 _getYoutubeHtml ()
 

Protected Attributes

 $_sClassName = 'oxmediaurls'
 

Detailed Description

Media URL handler

Constructor & Destructor Documentation

◆ __construct()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::__construct ( )

Class constructor, initiates parent constructor (parent::oxI18n()).

Member Function Documentation

◆ _getYoutubeHtml()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::_getYoutubeHtml ( )
protected

Transforms the link to YouTube object, and returns it.

Returns
string

◆ delete()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::delete (   $sOXID = null)

Deletes record and unlinks the file

Parameters
string$sOXIDObject ID(default null)
Returns
bool

◆ getHtml()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::getHtml ( )

Return HTML code depending on current URL

Returns
string

◆ getHtmlLink()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::getHtmlLink (   $blNewPage = true)

Returns simple HTML link

Parameters
bool$blNewPageWhether to open link in new window (adds target=_blank to link)
Returns
string

◆ getLink()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::getLink ( )

Returns link

Returns
string

◆ getObjectId()

OxidEsales\EshopCommunity\Application\Model\MediaUrl::getObjectId ( )

Returns object id

Returns
string

Member Data Documentation

◆ $_sClassName

OxidEsales\EshopCommunity\Application\Model\MediaUrl::$_sClassName = 'oxmediaurls'
protected

The documentation for this class was generated from the following file: