This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
lilac/classes/ImportLogEntry.php
2011-08-18 14:54:38 +00:00

46 lines
1,001 B
PHP
Executable file

<?php
require_once 'om/BaseImportLogEntry.php';
/**
* Skeleton subclass for representing a row from the 'import_log_entry' table.
*
* Import Job Entry
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package
*/
class ImportLogEntry extends BaseImportLogEntry {
const TYPE_NOTICE = 1;
const TYPE_WARNING = 2;
const TYPE_ERROR = 3;
public function isValidType($type) {
return true;
if($type != ImportLogEntry::TYPE_NOTICE &&
$type != ImportLogEntry::TYPE_WARNING &&
$type != ImportLogEntry::TYPE_ERROR) {
return false;
}
return true;
}
public function getReadableType($type) {
if($type == ImportLogEntry::TYPE_NOTICE) {
return "NOTICE";
}
if($type == ImportLogEntry::TYPE_WARNING) {
return "WARNING";
}
if($type == ImportLogEntry::TYPE_ERROR) {
return "ERROR";
}
}
} // ImportLogEntry