dmBridge PHP API
DMFacetTerm.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00016 class DMFacetTerm {
00017 
00019    private $count = 0;
00021    private $field;
00023    private $uri;
00024 
00029    public function __construct(DMDCElement $field, $count = 0) {
00030       $this->setField($field);
00031       $this->setCount($count);
00032    }
00033 
00040    public function __toString() {
00041       return (string) $this->getField()->getName();
00042    }
00043 
00047    public function getCount() {
00048       return $this->count;
00049    }
00050 
00054    public function setCount($int) {
00055       $this->count = abs((int) $int);
00056    }
00057 
00061    public function getField() {
00062       return $this->field;
00063    }
00064 
00068    public function setField(DMDCElement $f) {
00069       $this->field = $f;
00070    }
00071 
00075    public function getURI() {
00076       return $this->uri;
00077    }
00078 
00082    public function setURI(DMURI $uri) {
00083       $this->uri = $uri;
00084    }
00085 
00086 }
 All Data Structures Functions Variables