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

Member Function Documentation

◆ getServices()

ElectronicCollection::getServices ( )

load record from Alma

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

References $grima.

2643  {
2644  global $grima;
2645  $ret = $grima->getElectronicServices($this['collection_id']);
2646  $xpath = new DomXpath($ret);
2647  $eservices = $xpath->query('//electronic_services/electronic_service');
2648  foreach ($eservices as $service) {
2649  $service_id = $service->firstChild->nodeValue; # XXX really?
2650  $ser = new ElectronicService();
2651  $ser->loadFromServiceListNode($service);
2652  $this->services[] = $ser;
2653  }
2654  }
$grima
Definition: grima-lib.php:1166
class ElectronicService
Definition: grima-lib.php:2663

◆ loadFromAlma()

ElectronicCollection::loadFromAlma (   $collection_id)

load record from Alma

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

References $grima.

2631  {
2632  global $grima;
2633  $this->xml = $grima->getElectronicCollection($collection_id);
2634  #$this['collection_id'] = $collection_id;
2635  }
$grima
Definition: grima-lib.php:1166

Member Data Documentation

◆ $el_address

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

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

◆ $services

ElectronicCollection::$services = array()

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

◆ $xml

ElectronicCollection::$xml

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


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