You are here

public function FeedsConfigurable::__get in Feeds 6

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

Override magic method __get(). Make sure that $this->config goes through getConfig()

File

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

Class

FeedsConfigurable
Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.

Code

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