dmBridge PHP API
DMLogEntry.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 # Copyright © 2009, 2010 Board of Regents of the Nevada System of Higher
00005 # Education, on behalf of the University of Nevada, Las Vegas
00006 #
00007 
00015 class DMLogEntry implements DMLoggable {
00016 
00018    private $message;
00020    private $priority;
00021 
00026    public function __construct($message = null, $priority = 3) {
00027       $this->setLogMessage($message);
00028       $this->setLogPriority($priority);
00029    }
00030 
00034    public function getLogMessage() {
00035       return $this->message;
00036    }
00037 
00041    public function setLogMessage($message) {
00042       $this->message = $message;
00043    }
00044 
00048    public function getLogPriority() {
00049       return $this->priority;
00050    }
00051 
00055    public function setLogPriority($priority) {
00056       $this->priority = abs($priority);
00057    }
00058 }
 All Data Structures Functions Variables