mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Initial code changes to insert/update Ebook records
This commit is contained in:
parent
073f138c47
commit
63d411a2e6
10 changed files with 531 additions and 28 deletions
|
@ -3,13 +3,15 @@ use function Safe\preg_replace;
|
|||
|
||||
class Collection{
|
||||
public string $Name;
|
||||
public string $UrlName;
|
||||
public string $Url;
|
||||
public ?int $SequenceNumber = null;
|
||||
public ?string $Type = null;
|
||||
|
||||
public function __construct(string $name){
|
||||
$this->Name = $name;
|
||||
$this->Url = '/collections/' . Formatter::MakeUrlSafe($this->Name);
|
||||
$this->UrlName = Formatter::MakeUrlSafe($this->Name);
|
||||
$this->Url = '/collections/' . $this->UrlName;
|
||||
}
|
||||
|
||||
public function GetSortedName(): string{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue