interface FeedsSourceInterface in Feeds 7
Same name and namespace in other branches
- 6 includes/FeedsSource.inc \FeedsSourceInterface
- 7.2 includes/FeedsSource.inc \FeedsSourceInterface
Declares an interface for a class that defines default values and form descriptions for a FeedSource.
Hierarchy
- interface \FeedsSourceInterface
Expanded class hierarchy of FeedsSourceInterface
All classes that implement FeedsSourceInterface
File
- includes/
FeedsSource.inc, line 12 - Definition of FeedsSourceInterface and FeedsSource class.
View source
interface FeedsSourceInterface {
/**
* Crutch: for ease of use, we implement FeedsSourceInterface for every
* plugin, but then we need to have a handle which plugin actually implements
* a source.
*
* @see FeedsPlugin class.
*
* @return
* TRUE if a plugin handles source specific configuration, FALSE otherwise.
*/
public function hasSourceConfig();
/**
* Return an associative array of default values.
*/
public function sourceDefaults();
/**
* Return a Form API form array that defines a form configuring values. Keys
* correspond to the keys of the return value of sourceDefaults().
*/
public function sourceForm($source_config);
/**
* Validate user entered values submitted by sourceForm().
*/
public function sourceFormValidate(&$source_config);
/**
* A source is being deleted.
*/
public function sourceSave(FeedsSource $source);
/**
* A source is being saved.
*/
public function sourceDelete(FeedsSource $source);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedsSourceInterface:: |
public | function | Crutch: for ease of use, we implement FeedsSourceInterface for every plugin, but then we need to have a handle which plugin actually implements a source. | 1 |
FeedsSourceInterface:: |
public | function | Return an associative array of default values. | 1 |
FeedsSourceInterface:: |
public | function | A source is being saved. | 1 |
FeedsSourceInterface:: |
public | function | Return a Form API form array that defines a form configuring values. Keys correspond to the keys of the return value of sourceDefaults(). | 1 |
FeedsSourceInterface:: |
public | function | Validate user entered values submitted by sourceForm(). | 1 |
FeedsSourceInterface:: |
public | function | A source is being deleted. | 1 |