Add PropertyFromHttp trait and update codebase to use new pattern

This commit is contained in:
Alex Cabal 2024-11-10 22:23:43 -06:00
parent c35c47b793
commit acb30b897c
47 changed files with 851 additions and 527 deletions

View file

@ -21,13 +21,13 @@ class RssFeed extends Feed{
// *******
protected function GetXmlString(): string{
if($this->XmlString === null){
if(!isset($this->_XmlString)){
$feed = Template::RssFeed(['url' => $this->Url, 'description' => $this->Description, 'title' => $this->Title, 'entries' => $this->Entries, 'updated' => NOW]);
$this->XmlString = $this->CleanXmlString($feed);
$this->_XmlString = $this->CleanXmlString($feed);
}
return $this->XmlString;
return $this->_XmlString;
}
public function SaveIfChanged(): bool{