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

18 lines
520 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?
class Contributor{
public $Name;
public $UrlName;
public $SortName;
public $WikipediaUrl;
public $MarcRole;
public $FullName;
public function __construct(string $name, string $sortName = null, string $fullName = null, string $wikipediaUrl = null, string $marcRole = null){
$this->Name = str_replace('\'', '', $name);
$this->UrlName = Formatter::MakeUrlSafe($name);
$this->SortName = $sortName;
$this->FullName = $fullName;
$this->WikipediaUrl = $wikipediaUrl;
$this->MarcRole = $marcRole;
}
}