web/lib/Collection.php
2020-05-21 15:49:48 -05:00

11 lines
289 B
PHP

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