Property | Type | Description | |
---|---|---|---|
$config | Configuration Settings | ||
$errors | Fetched errors | ||
$oembed | Instance of \Embera\Oembed | ||
$providers | Instance of \Embera\Providers | ||
$urlEmbedRegex | The pattern used to extract urls from a text when the embed:// prefix option is enabled | ||
$urlRegex | The pattern used to extract urls from a text |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Constructs the object and also instantiates the \Embera\Oembed Object and stores it into the $oembed properoty | |
addProvider ( string $host, string | object $class, array $params = [] ) : void | Adds a new Provider into the service map | |
autoEmbed ( string $body = null ) : string | Embeds known/available services into the given text. | |
getErrors ( ) : array | Returns an array with all the errors | |
getLastError ( ) : string | Gets the last error found | |
getUrlInfo ( string | array $body = null ) : array | Finds all the information about a url (or a collection of urls) | |
hasErrors ( ) : boolean | Checks if there were errors |
Method | Description | |
---|---|---|
clean ( array $services = [] ) : array | Strips invalid providers from the list | |
getProviders ( null | string | array $body = '' ) : array | Finds all the valid urls inside the given text, compares which are allowed and returns an array with the detected providers |
public __construct ( array $config = [] ) : void | ||
$config | array | |
return | void |
public getLastError ( ) : string | ||
return | string |
protected $urlEmbedRegex |