web/lib/Collection.php
2020-05-02 21:03:22 -05:00

10 lines
257 B
PHP

<?
class Collection{
public $Name;
public $Url;
public function __construct(string $name){
$this->Name = $name;
$this->Url = '/collections/' . strtolower(str_replace(' ', '-', Formatter::ToPlainText(Formatter::RemoveDiacritics($this->Name))));
}
}