Grima  2018-08
Whispering into Alma's ear
Public Member Functions | Public Attributes | List of all members
HoldingsList Class Reference

class HoldingsList More...

Inheritance diagram for HoldingsList:
AlmaObject

Public Member Functions

 __construct ($mms_id=null)
 
 loadFromAlma ($mms_id)
 
- Public Member Functions inherited from AlmaObject
 __construct ()
 create new blank Alma Object More...
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Public Attributes

 $el_address
 
 $xml
 
 $entries = array()
 
- Public Attributes inherited from AlmaObject
 $el_access = array()
 
 $xml
 
 $templateDir = __DIR__ . "/templates"
 

Detailed Description

class HoldingsList

Definition at line 2072 of file grima-lib.php.

Constructor & Destructor Documentation

◆ __construct()

HoldingsList::__construct (   $mms_id = null)

Definition at line 2082 of file grima-lib.php.

References loadFromAlma().

2082  {
2083  if (!is_null($mms_id)) {
2084  $this->loadFromAlma($mms_id);
2085  }
2086  }
loadFromAlma($mms_id)
Definition: grima-lib.php:2088

Member Function Documentation

◆ loadFromAlma()

HoldingsList::loadFromAlma (   $mms_id)

Definition at line 2088 of file grima-lib.php.

References $grima.

Referenced by __construct().

2088  {
2089  global $grima;
2090  $this->xml = $grima->getHoldingsList($mms_id);
2091  $xpath = new DomXpath($this->xml);
2092  $hs = $xpath->query('//holding');
2093  $this->entries = array(); # clear
2094  #$this->holdings = array(); # clear
2095  foreach ($hs as $h) {
2096  #$this->holdings[] = new HoldingsListEntry($h,$mms_id);
2097  $this->entries[] = new HoldingsListEntry($h,$mms_id);
2098  }
2099  }
$grima
Definition: grima-lib.php:1166
class HoldingsListEntry
Definition: grima-lib.php:2106

Member Data Documentation

◆ $el_address

HoldingsList::$el_address
Initial value:
= array(
'mms_id' => '//mms_id',
'title' => '//title',
'author' => '//author',
)

Definition at line 2073 of file grima-lib.php.

◆ $entries

HoldingsList::$entries = array()

Definition at line 2080 of file grima-lib.php.

◆ $xml

HoldingsList::$xml

Definition at line 2078 of file grima-lib.php.


The documentation for this class was generated from the following file: