Class Socialveo\Core\library\UrlEmbed

InheritanceSocialveo\Core\library\UrlEmbed » Phalcon\Mvc\User\Component

Class UrlEmbed

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getAcceptLanguageHeader() Create accept language string for using in header Socialveo\Core\library\UrlEmbed
getData() Embed links Socialveo\Core\library\UrlEmbed
getDataFromRequest() Get data from request Socialveo\Core\library\UrlEmbed
linkedInWorkaround() Linkedin workaround Socialveo\Core\library\UrlEmbed
parseCode() Parse code from embed Socialveo\Core\library\UrlEmbed

Method Details

getAcceptLanguageHeader() public static method

Create accept language string for using in header

public static string getAcceptLanguageHeader ( $lang 'en-US' )
$lang string
getData() public static method

Embed links

public static array getData ( $link, $config = [], &$errors null )
$link string
$config array
$errors mixed

[optional]

return array

$embedData

throws Exception
getDataFromRequest() public static method

Get data from request

public static array|null getDataFromRequest ( $field, $lang 'en-US' )
$field string|null
$lang string

[optional]

linkedInWorkaround() public static method

Linkedin workaround

public static array linkedInWorkaround ( $link, $config = [] )
$link string
$config array

[optional]

parseCode() public static method

Parse code from embed

public static array parseCode ( $embed, &$errors null )
$embed array
$errors mixed

[optional]