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

Member Function Documentation

◆ getServices()

ElectronicCollection::getServices ( )

load record from Alma

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

References $grima.

3103  {
3104  global $grima;
3105  $ret = $grima->getElectronicServices($this['collection_id']);
3106  $xpath = new DomXpath($ret);
3107  $eservices = $xpath->query('//electronic_services/electronic_service');
3108  foreach ($eservices as $service) {
3109  $service_id = $service->firstChild->nodeValue; # XXX really?
3110  $ser = new ElectronicService();
3111  $ser->loadFromServiceListNode($service);
3112  $this->services[] = $ser;
3113  }
3114  }
$grima
Definition: grima-lib.php:4293
class ElectronicService
Definition: grima-lib.php:3123

◆ loadFromAlma()

ElectronicCollection::loadFromAlma (   $collection_id )

load record from Alma

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

References $grima.

3080  {
3081  global $grima;
3082  $this->xml = $grima->getElectronicCollection($collection_id);
3083  #$this['collection_id'] = $collection_id;
3084  }
$grima
Definition: grima-lib.php:4293

◆ updateAlma()

ElectronicCollection::updateAlma ( )

replace the collection record in Alma

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

References $grima.

3092  {
3093  global $grima;
3094  $this->xml = $grima->putElectronicCollection($this['collection_id'], $this->xml);
3095  }
$grima
Definition: grima-lib.php:4293

Member Data Documentation

◆ $el_address

ElectronicCollection::$el_address
Initial value:
= array( # XXX many more fields here
'collection_id' => '//id',
'id' => '//id',
'public_name' => '//public_name',
)

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

◆ $services

ElectronicCollection::$services = array()

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

◆ $xml

ElectronicCollection::$xml

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


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