web/lib/Collection.php
2020-05-22 16:03:59 -05:00

12 lines
311 B
PHP

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