mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
Co-authored-by: Job Curtis <job.curtis@gmail.com> Co-authored-by: Alex Cabal <alex@standardebooks.org>
21 lines
389 B
PHP
21 lines
389 B
PHP
<?
|
|
class EbookTag extends Tag{
|
|
public function __construct(string $name){
|
|
$this->Name = $name;
|
|
$this->UrlName = Formatter::MakeUrlSafe($this->Name);
|
|
$this->_Url = '/subjects/' . $this->UrlName;
|
|
}
|
|
|
|
|
|
// *******
|
|
// GETTERS
|
|
// *******
|
|
|
|
protected function GetUrl(): string{
|
|
if($this->_Url === null){
|
|
$this->_Url = '/subjects/' . $this->UrlName;
|
|
}
|
|
|
|
return $this->_Url;
|
|
}
|
|
}
|