Break bulk downloads into sections, add authors bulk download, and refactor bulk download generation code

This commit is contained in:
Alex Cabal 2022-07-10 12:48:00 -05:00
parent 7f50f00b42
commit fc1db3a3d4
12 changed files with 355 additions and 206 deletions

View file

@ -1,5 +1,7 @@
<?
use function Safe\preg_replace;
class Collection{
public $Name;
public $Url;
@ -10,4 +12,8 @@ class Collection{
$this->Name = $name;
$this->Url = '/collections/' . Formatter::MakeUrlSafe($this->Name);
}
public function GetSortedName(): string{
return preg_replace('/^(the|and|a|)\b/ius', '', $this->Name);
}
}