additional_plugins/serendipity_event_oembed/oembed/EmbedProvider.class.php

21 lines
554 B
PHP
Raw Normal View History

2011-12-14 12:18:36 +01:00
<?php
abstract class EmbedProvider {
public $url;
public $endpoint;
public $maxwidth;
public $maxheight;
public $config;
2011-12-14 12:18:36 +01:00
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){
2011-12-14 12:18:36 +01:00
$this->url = $url;
$this->endpoint = $endpoint;
$this->maxwidth = $maxwidth;
$this->maxheight = $maxheight;
2011-12-14 12:18:36 +01:00
}
public function set_config($config) {
$this->config = $config;
}
2011-12-14 12:18:36 +01:00
}