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

class Location More...

Inheritance diagram for Location:
AlmaObject

Public Member Functions

  offsetSet ($offset, $value)
 
  loadFromAlma ($libraryCode, $locationCode)
  populate location with info 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

  $el_override_fields = array('library_code','flag')
 
  $el_address
 
- Public Attributes inherited from AlmaObject
  $el_access = array()
 
  $xml
 
  $templateDir = __DIR__ . "/templates"
 

Detailed Description

class Location

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

Member Function Documentation

◆ loadFromAlma()

Location::loadFromAlma (   $libraryCode,
  $locationCode 
)

populate location with info from Alma

Parameters
String $code - code of location to pull from Alma

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

References $grima.

3760  {
3761  global $grima;
3762  $this->xml = $grima->getLocation($libraryCode, $locationCode);
3763  $this['library_code'] = $libraryCode;
3764  }
$grima
Definition: grima-lib.php:4293

◆ offsetSet()

Location::offsetSet (   $offset,
  $value 
)

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

3739  {
3740  if (in_array($offset,$this->el_override_fields)) {
3741  $this->el_override[$offset] = $value;
3742  } else {
3743  parent::offsetSet($offset,$value);
3744  }
3745  /*
3746  if ($offset == "library_code") {
3747  $this->el_override['library_code'] = $value;
3748  } else {
3749  parent::offsetSet($offset,$value);
3750  }
3751  */
3752  }

Member Data Documentation

◆ $el_address

Location::$el_address
Initial value:
= array(
'code' => '//code',
'name' => '//name',
'external_name' => '//external_name',
'type' => '//type',
'remote_storage' => '//remote_storage',
'map' => '//map',
'suppress_from_publishing' => '//suppress_from_publishing',
'fulfillment_unit' => '//fulfillment_unit',
'accession_placement' => '//accession_placement',
'call_number_type' => '//call_number_type',
)

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

◆ $el_override_fields

Location::$el_override_fields = array('library_code','flag')

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


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