mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Break bulk downloads into sections, add authors bulk download, and refactor bulk download generation code
This commit is contained in:
parent
7f50f00b42
commit
fc1db3a3d4
12 changed files with 355 additions and 206 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue