Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param string $configFile Name of configuration file to load (relative to
  * web/conf folder; defaults to VoyagerRestful.ini).
  *
  * @access public
  */
 public function __construct($configFile = 'VoyagerRestful.ini')
 {
     // Call the parent's constructor...
     parent::__construct($configFile);
     // Define Voyager Restful Settings
     $this->ws_host = $this->config['WebServices']['host'];
     $this->ws_port = $this->config['WebServices']['port'];
     $this->ws_app = $this->config['WebServices']['app'];
     $this->ws_dbKey = $this->config['WebServices']['dbKey'];
     $this->ws_patronHomeUbId = $this->config['WebServices']['patronHomeUbId'];
     $this->ws_pickUpLocations = isset($this->config['pickUpLocations']) ? $this->config['pickUpLocations'] : false;
     $this->defaultPickUpLocation = $this->config['Holds']['defaultPickUpLocation'];
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @param string $configFile Name of configuration file to load (relative to
  * web/conf folder; defaults to VoyagerRestful.ini).
  *
  * @access public
  */
 public function __construct($configFile = 'VoyagerRestful.ini')
 {
     // Call the parent's constructor...
     parent::__construct($configFile);
     // Define Voyager Restful Settings
     $this->ws_host = $this->config['WebServices']['host'];
     $this->ws_port = $this->config['WebServices']['port'];
     $this->ws_app = $this->config['WebServices']['app'];
     $this->ws_dbKey = $this->config['WebServices']['dbKey'];
     $this->ws_patronHomeUbId = $this->config['WebServices']['patronHomeUbId'];
     $this->ws_pickUpLocations = isset($this->config['pickUpLocations']) ? $this->config['pickUpLocations'] : false;
     $this->defaultPickUpLocation = isset($this->config['Holds']['defaultPickUpLocation']) ? $this->config['Holds']['defaultPickUpLocation'] : false;
     if ($this->defaultPickUpLocation == '0') {
         $this->defaultPickUpLocation = false;
     }
     $this->holdCheckLimit = isset($this->config['Holds']['holdCheckLimit']) ? $this->config['Holds']['holdCheckLimit'] : "15";
     $this->callSlipCheckLimit = isset($this->config['CallSlips']['checkLimit']) ? $this->config['CallSlips']['checkLimit'] : "15";
     $this->itemHolds = isset($this->config['Holds']['enableItemHolds']) ? $this->config['Holds']['enableItemHolds'] : true;
     $this->requestGroups = isset($this->config['Holds']['enableRequestGroups']) ? $this->config['Holds']['enableRequestGroups'] : false;
     $this->defaultRequestGroup = isset($this->config['Holds']['defaultRequestGroup']) ? $this->config['Holds']['defaultRequestGroup'] : false;
     $this->pickupLocationsInRequestGroup = isset($this->config['Holds']['pickupLocationsInRequestGroup']) ? $this->config['Holds']['pickupLocationsInRequestGroup'] : false;
 }