Add subjects OPDS feeds, and switch to a more object-oriented approach to generating the OPDS feeds

This commit is contained in:
Alex Cabal 2020-06-25 12:56:14 -05:00
parent a42de8ef4d
commit 133f93cdce
11 changed files with 187 additions and 51 deletions

View file

@ -0,0 +1,20 @@
<?
class OpdsNavigationEntry{
public $Id;
public $Url;
public $Rel;
public $Type;
public $Updated;
public $Description;
public $Title;
public function __construct(string $url, string $rel, string $type, ?DateTime $updated, string $title, string $description){
$this->Id = SITE_URL . $url;
$this->Url = $url;
$this->Rel = $rel;
$this->Type = $type;
$this->Updated = $updated;
$this->Title = $title;
$this->Description = $description;
}
}