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 2914 of file grima-lib.php.

Constructor & Destructor Documentation

◆ __construct()

HoldingsList::__construct (   $mms_id = null )

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

2926 {
2927 if (!is_null($mms_id)) {
2928 $this->loadFromAlma($mms_id);
2929 }
2930 }
loadFromAlma($mms_id)
Definition: grima-lib.php:2932

References loadFromAlma().

Member Function Documentation

◆ loadFromAlma()

HoldingsList::loadFromAlma (   $mms_id )

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

2933 {
2934 global $grima;
2935 $this->xml = $grima->getHoldingsList($mms_id);
2936 $xpath = new DomXpath($this->xml);
2937 $hs = $xpath->query('//holding');
2938 $this->entries = array(); // clear
2939 // $this->holdings = array(); # clear
2940 foreach ($hs as $h) {
2941 // $this->holdings[] = new HoldingsListEntry($h,$mms_id);
2942 $this->entries[] = new HoldingsListEntry($h, $mms_id);
2943 }
2944 }
class HoldingsListEntry
Definition: grima-lib.php:2954
$grima
Definition: grima-lib.php:5143

References $grima.

Referenced by __construct().

Member Data Documentation

◆ $el_address

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

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

◆ $entries

HoldingsList::$entries = array()

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

◆ $xml

HoldingsList::$xml

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


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