additional_plugins/serendipity_event_oembed/oembed/EmbedProvider.class.php
Grischa Brockhaus f4885a0d52 plugin_oembed:
New AudioBoo resolver supporting the 3 different players of AudioBoo
(configurable wich).
The old "wordpress player" is default for backwards compatibility reason
2012-02-03 01:42:31 +01:00

21 lines
554 B
PHP

<?php
abstract class EmbedProvider {
public $url;
public $endpoint;
public $maxwidth;
public $maxheight;
public $config;
public abstract function match($url);
public abstract function provide($url,$format="json");
// public abstract function register();
public function __construct($url,$endpoint, $maxwidth=null, $maxheight=null){
$this->url = $url;
$this->endpoint = $endpoint;
$this->maxwidth = $maxwidth;
$this->maxheight = $maxheight;
}
public function set_config($config) {
$this->config = $config;
}
}