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

Constructor & Destructor Documentation

◆ __construct()

HoldingsList::__construct (   $mms_id = null )

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

2485  {
2486  if (!is_null($mms_id)) {
2487  $this->loadFromAlma($mms_id);
2488  }
2489  }
loadFromAlma($mms_id)
Definition: grima-lib.php:2491

Member Function Documentation

◆ loadFromAlma()

HoldingsList::loadFromAlma (   $mms_id )

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

References $grima.

2491  {
2492  global $grima;
2493  $this->xml = $grima->getHoldingsList($mms_id);
2494  $xpath = new DomXpath($this->xml);
2495  $hs = $xpath->query('//holding');
2496  $this->entries = array(); # clear
2497  #$this->holdings = array(); # clear
2498  foreach ($hs as $h) {
2499  #$this->holdings[] = new HoldingsListEntry($h,$mms_id);
2500  $this->entries[] = new HoldingsListEntry($h,$mms_id);
2501  }
2502  }
$grima
Definition: grima-lib.php:4293
class HoldingsListEntry
Definition: grima-lib.php:2509

Member Data Documentation

◆ $el_address

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

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

◆ $entries

HoldingsList::$entries = array()

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

◆ $xml

HoldingsList::$xml

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


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