mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Update PropertiesBase to new patterns and improve static analysis checks
This commit is contained in:
parent
5f0b57f7e9
commit
6c8414f844
33 changed files with 335 additions and 148 deletions
11
lib/Feed.php
11
lib/Feed.php
|
@ -13,6 +13,12 @@ class Feed{
|
|||
public $Stylesheet = null;
|
||||
protected $XmlString = null;
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
* @param string $url
|
||||
* @param string $path
|
||||
* @param array<Ebook> $entries
|
||||
*/
|
||||
public function __construct(string $title, string $url, string $path, array $entries){
|
||||
$this->Url = $url;
|
||||
$this->Title = $title;
|
||||
|
@ -20,6 +26,11 @@ class Feed{
|
|||
$this->Entries = $entries;
|
||||
}
|
||||
|
||||
|
||||
// *******
|
||||
// METHODS
|
||||
// *******
|
||||
|
||||
protected function CleanXmlString(string $xmlString): string{
|
||||
$tempFilename = tempnam('/tmp/', 'se-');
|
||||
file_put_contents($tempFilename, $xmlString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue