mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-14 04:24:05 +02:00
Deuxième lot de bridges.
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* 2014-08-27
|
||||
* @name NASA APOD Bridge
|
||||
* @homepage http://apod.nasa.gov/apod/astropix.html
|
||||
* @description Returns the 3 latest NASA APOD pictures and explanations
|
||||
* @maintainer corenting
|
||||
*/
|
||||
class NasaApodBridge extends BridgeAbstract{
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = "corenting";
|
||||
$this->name = "NASA APOD Bridge";
|
||||
$this->uri = "http://apod.nasa.gov/apod/astropix.html";
|
||||
$this->description = "Returns the 3 latest NASA APOD pictures and explanations";
|
||||
$this->update = "2014-08-27";
|
||||
|
||||
}
|
||||
|
||||
public function collectData(array $param) {
|
||||
|
||||
$html = file_get_html('http://apod.nasa.gov/apod/archivepix.html') or $this->returnError('Error while downloading the website content', 404);
|
||||
|
Reference in New Issue
Block a user