10 defined(
'JPATH_PLATFORM') or die();
86 $this->oauth = $oauth;
87 $this->options = isset($options) ? $options :
new JRegistry;
88 $this->client = isset($client) ? $client :
new JHttp($this->options);
91 $this->options->def(
'api.url',
'https://api.linkedin.com');
104 public function __get($name)
106 $class =
'JLinkedin' . ucfirst($name);
108 if (class_exists($class))
110 if (
false == isset($this->$name))
112 $this->$name =
new $class($this->options, $this->client, $this->oauth);
118 throw new InvalidArgumentException(sprintf(
'Argument %s produced an invalid class name: %s', $name, $class));
130 public function getOption($key)
132 return $this->options->get($key);
145 public function setOption($key, $value)
147 $this->options->set($key, $value);