10 defined(
'JPATH_PLATFORM') or die();
122 $this->oauth = $oauth;
123 $this->options = isset($options) ? $options :
new JRegistry;
124 $this->client = isset($client) ? $client :
new JHttp($this->options);
127 $this->options->def(
'api.url',
'https://api.twitter.com/1.1');
140 public function __get($name)
142 $class =
'JTwitter' . ucfirst($name);
144 if (class_exists($class))
146 if (
false == isset($this->$name))
148 $this->$name =
new $class($this->options, $this->client, $this->oauth);
154 throw new InvalidArgumentException(sprintf(
'Argument %s produced an invalid class name: %s', $name, $class));
166 public function getOption($key)
168 return $this->options->get($key);
181 public function setOption($key, $value)
183 $this->options->set($key, $value);