2011-12-14 12:18:36 +01:00
|
|
|
<?php
|
2011-12-15 03:13:15 +01:00
|
|
|
class OEmbed{
|
|
|
|
public $type;
|
|
|
|
public $version;
|
|
|
|
public $title;
|
|
|
|
public $author_name;
|
|
|
|
public $author_url;
|
|
|
|
public $provider_name;
|
|
|
|
public $provider_url;
|
|
|
|
public $cache_age;
|
|
|
|
public $description; // added by me, not part of OEmbed
|
|
|
|
public $resource_url; // added by me, not part of OEmbed
|
|
|
|
public $thumbnail_url;
|
|
|
|
public $thumbnail_width;
|
|
|
|
public $thumbnail_height;
|
|
|
|
|
|
|
|
public function cloneObj($object){
|
|
|
|
foreach($object as $key=>$value){
|
|
|
|
$this->$key=(string)$value;
|
|
|
|
}
|
|
|
|
}
|
2011-12-14 12:18:36 +01:00
|
|
|
}
|
|
|
|
|