public function FeedsExBase::getEncoder in Feeds extensible parsers 7
Returns the encoder.
Return value
FeedsExEncoderInterface The encoder object.
File
- src/
FeedsExBase.inc, line 775 - Contains FeedsExBase.
Class
- FeedsExBase
- The Feeds extensible parser.
Code
public function getEncoder() {
if (!isset($this->encoder)) {
$class = $this->encoderClass;
$this->encoder = new $class($this->config['source_encoding']);
}
return $this->encoder;
}