Example #1
0
 /**
  * Get a registry value.
  *
  * @param   string  $path     Registry path (e.g. foo.content.showauthor)
  * @param   mixed   $default  Optional default value, returned if the internal value is null.
  *
  * @return  mixed  Value of entry or null
  *
  * @since   2.0
  */
 public function get($path, $default = null)
 {
     $result = RegistryHelper::getByPath($this->data, $path, $this->separator);
     return !is_null($result) ? $result : $default;
 }