web/lib/Collection.php
2019-04-03 16:25:00 -05:00

10 lines
263 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)))) . '/';
}
}