protected function LogProcessor::entityLoad in Log entity 7
Loads an existing log.
If the update existing method is not FEEDS_UPDATE_EXISTING, only the log table will be loaded, foregoing the log_load API for better performance.
File
- includes/
feeds/ plugins/ LogProcessor.inc, line 58 - Class definition of LogProcessor.
Class
- LogProcessor
- Creates logs from feed items.
Code
protected function entityLoad(FeedsSource $source, $id) {
$log = parent::entityLoad($source, $id);
if ($this->config['update_existing'] != FEEDS_UPDATE_EXISTING) {
$log->uid = $this->config['author'];
}
return $log;
}