mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
20 lines
388 B
PHP
20 lines
388 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;
|
|
}
|
|
}
|