mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Fix some naming errors and code cleanup
This commit is contained in:
parent
3fa9592e6d
commit
b48a788430
3 changed files with 5 additions and 12 deletions
|
@ -1,7 +0,0 @@
|
|||
<?
|
||||
|
||||
class Artwork extends PropertiesBase{
|
||||
public $ArtworkId;
|
||||
public $Title;
|
||||
protected $DisplayTitle = null;
|
||||
}
|
|
@ -15,18 +15,18 @@ class NewsletterSubscriber extends PropertiesBase{
|
|||
public $IsSubscribedToSummary = true;
|
||||
public $IsSubscribedToNewsletter = true;
|
||||
public $Created;
|
||||
protected $Url = null;
|
||||
protected $_Url = null;
|
||||
|
||||
// *******
|
||||
// GETTERS
|
||||
// *******
|
||||
|
||||
protected function GetUrl(): string{
|
||||
if($this->Url === null){
|
||||
$this->Url = SITE_URL . '/newsletter/subscribers/' . $this->Uuid;
|
||||
if($this->_Url === null){
|
||||
$this->_Url = SITE_URL . '/newsletter/subscribers/' . $this->Uuid;
|
||||
}
|
||||
|
||||
return $this->Url;
|
||||
return $this->_Url;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ use Safe\DateTime;
|
|||
*/
|
||||
class Patron extends PropertiesBase{
|
||||
public $UserId = null;
|
||||
protected $User = null;
|
||||
protected $_User = null;
|
||||
public $IsAnonymous;
|
||||
public $AlternateName;
|
||||
public $IsSubscribedToEmails;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue