public function FeedsConfigurable::existing in Feeds 7.2
Same name and namespace in other branches
- 6 includes/FeedsConfigurable.inc \FeedsConfigurable::existing()
- 7 includes/FeedsConfigurable.inc \FeedsConfigurable::existing()
Determines whether this object is persistent and enabled.
This means that it exists either in code or in the database and it is enabled.
Return value
$this
Throws
FeedsNotExistingException When the object is not persistent or is not 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 154 - FeedsConfigurable and helper functions.
Class
- FeedsConfigurable
- Base class for configurable classes.
Code
public function existing() {
if (!$this
->doesExist()) {
throw new FeedsNotExistingException(t('Object is not persistent.'));
}
if (!$this
->isEnabled()) {
throw new FeedsNotExistingException(t('Object is disabled.'));
}
return $this;
}