plateforme-corres2math/server_files/classes/DocumentType.php

29 lines
415 B
PHP

<?php
class DocumentType
{
const PHOTO_CONSENT = 0;
public static function getTranslatedName($type) {
switch ($type) {
default:
return "Autorisation de droit à l'image";
}
}
public static function getName($type) {
switch ($type) {
default:
return "PHOTO_CONSENT";
}
}
public static function fromName($name) {
switch ($name) {
default:
return self::PHOTO_CONSENT;
}
}
}