10 defined(
'JPATH_PLATFORM') or die;
93 $this->options = isset($options) ? $options :
new JRegistry;
94 $this->client = isset($client) ? $client :
new JMediawikiHttp($this->options);
107 public function __get($name)
109 $name = strtolower($name);
110 $class =
'JMediawiki' . ucfirst($name);
121 if (class_exists($class) && in_array($name, $accessible))
123 if (!isset($this->$name))
125 $this->$name =
new $class($this->options, $this->client);
131 throw new InvalidArgumentException(sprintf(
'Property %s is not accessible.', $name));
143 public function getOption($key)
145 return $this->options->get($key);
158 public function setOption($key, $value)
160 $this->options->set($key, $value);