public function FeedsConfigurable::existing in Feeds 6
Same name and namespace in other branches
- 7.2 includes/FeedsConfigurable.inc \FeedsConfigurable::existing()
- 7 includes/FeedsConfigurable.inc \FeedsConfigurable::existing()
Determine whether this object is persistent and enabled. I. e. it is defined either in code or in the database and it is enabled.
1 call to FeedsConfigurable::existing()
- FeedsSource::existing in includes/FeedsSource.inc 
- Only return source if configuration is persistent and valid.
1 method overrides FeedsConfigurable::existing()
- FeedsSource::existing in includes/FeedsSource.inc 
- Only return source if configuration is persistent and valid.
File
- includes/FeedsConfigurable.inc, line 89 
- 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 existing() {
  if ($this->export_type == FEEDS_EXPORT_NONE) {
    throw new FeedsNotExistingException(t('Object is not persistent.'));
  }
  if ($this->disabled) {
    throw new FeedsNotExistingException(t('Object is disabled.'));
  }
  return $this;
}