dmBridge PHP API
DMFlash.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 
00017 class DMFlash {
00018 
00019    private $value, $status;
00020 
00026    public final function __construct($value, $status = null) {
00027       $this->setValue($value);
00028       $this->setStatus($status);
00029    }
00030 
00035    public final function __toString() {
00036       return (string) $this->getValue();
00037    }
00038 
00045    public final function getStatus() {
00046       return $this->status;
00047    }
00048 
00055    public final function setStatus($status) {
00056       if ($status === null) {
00057          $this->status = null;
00058          return;
00059       }
00060       $this->status = ($status);
00061    }
00062 
00067    public final function getValue() {
00068       return $this->value;
00069    }
00070 
00075    public final function setValue($value) {
00076       $this->value = $value;
00077    }
00078 
00079 }
00080 
 All Data Structures Functions Variables