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

class ElectronicCollection More...

Inheritance diagram for ElectronicCollection:
AlmaObject

Public Member Functions

  loadFromAlma ($collection_id)
  load record from Alma More...
 
  updateAlma ()
  replace the collection record in Alma More...
 
  getServices ()
  load record from Alma More...
 
- Public Member Functions inherited from AlmaObject
  __construct ()
  create new blank Alma Object More...
 
  offsetExists ($offset)
 
  offsetGet ($offset)
 
  offsetSet ($offset, $value)
 
  offsetUnset ($offset)
 

Public Attributes

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

Detailed Description

class ElectronicCollection

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

Member Function Documentation

◆ getServices()

ElectronicCollection::getServices ( )

load record from Alma

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

3778 {
3779 global $grima;
3780 $ret = $grima->getElectronicServices($this['collection_id']);
3781 $xpath = new DomXpath($ret);
3782 $eservices = $xpath->query('//electronic_services/electronic_service');
3783 foreach ($eservices as $service) {
3784 $service_id = $service->firstChild->nodeValue; // XXX really?
3785 $ser = new ElectronicService();
3786 $ser->loadFromServiceListNode($service);
3787 $this->services[] = $ser;
3788 }
3789 }
class ElectronicService
Definition: grima-lib.php:3801
$grima
Definition: grima-lib.php:5143

References $grima.

◆ loadFromAlma()

ElectronicCollection::loadFromAlma (   $collection_id )

load record from Alma

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

3755 {
3756 global $grima;
3757 $this->xml = $grima->getElectronicCollection($collection_id);
3758 // $this['collection_id'] = $collection_id;
3759 }

References $grima.

◆ updateAlma()

ElectronicCollection::updateAlma ( )

replace the collection record in Alma

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

3767 {
3768 global $grima;
3769 $this->xml = $grima->putElectronicCollection($this['collection_id'], $this->xml);
3770 }

References $grima.

Member Data Documentation

◆ $el_address

ElectronicCollection::$el_address
Initial value:
= array(
'collection_id' => '//id',
'id' => '//id',
'public_name' => '//public_name',
)

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

◆ $services

ElectronicCollection::$services = array()

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

◆ $xml

ElectronicCollection::$xml

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


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