You are here

public function FeedsConfigurable::__get in Feeds 7.2

Same name and namespace in other branches
  1. 6 includes/FeedsConfigurable.inc \FeedsConfigurable::__get()
  2. 7 includes/FeedsConfigurable.inc \FeedsConfigurable::__get()

Overrides magic method __get().

  • Makes sure that external reads of FeedsConfigurable::config go through ::getConfig();
  • Makes private and protected properties from this class and protected properties from child classes publicly readable.
  • Prevents warnings when accessing non-existent properties.

File

includes/FeedsConfigurable.inc, line 216
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes.

Code

public function __get($name) {
  if ($name == 'config') {
    return $this
      ->getConfig();
  }
  return isset($this->{$name}) ? $this->{$name} : NULL;
}