interface FeedsExEncoderInterface in Feeds extensible parsers 7
Coverts text encodings.
Hierarchy
- interface \FeedsExEncoderInterface
Expanded class hierarchy of FeedsExEncoderInterface
All classes that implement FeedsExEncoderInterface
File
- src/
Text/ Utility.php, line 11 - Contains FeedsExEncoderInterface and FeedsExTextEncoder.
View source
interface FeedsExEncoderInterface {
/**
* Constructs a FeedsExEncoderInterface object.
*
* @param array $encoding_list
* The list of encodings to search through.
*/
public function __construct(array $encoding_list);
/**
* Converts a string to UTF-8.
*
* @param string $data
* The string to convert.
*
* @return string
* The encoded string, or the original string if encoding failed.
*/
public function convertEncoding($data);
/**
* Returns the configuration form to select encodings.
*
* @param array $form
* The current form.
* @param array &$form_state
* The form state.
*
* @return array
* The modified form array.
*/
public function configForm(array $form, array &$form_state);
/**
* Validates the encoding configuration form.
*
* @param array &$values
* The form values.
*/
public function configFormValidate(array &$values);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedsExEncoderInterface:: |
public | function | Returns the configuration form to select encodings. | 1 |
FeedsExEncoderInterface:: |
public | function | Validates the encoding configuration form. | 1 |
FeedsExEncoderInterface:: |
public | function | Converts a string to UTF-8. | 1 |
FeedsExEncoderInterface:: |
public | function | Constructs a FeedsExEncoderInterface object. | 1 |