mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Add subjects OPDS feeds, and switch to a more object-oriented approach to generating the OPDS feeds
This commit is contained in:
parent
a42de8ef4d
commit
133f93cdce
11 changed files with 187 additions and 51 deletions
20
lib/OpdsNavigationEntry.php
Normal file
20
lib/OpdsNavigationEntry.php
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue