public function FeedImportProcessor::setUniq in Feed Import 7.3
Sets uniq path for monitoring items.
Parameters
string $uniq: A path.
Return value
boolean TRUE if success
File
- feed_import_base/
inc/ feed_import.inc, line 874 - This file contains Feed Import helpers.
Class
- FeedImportProcessor
- Class that processess the import.
Code
public function setUniq($uniq) {
if ($uniq == NULL) {
return TRUE;
}
if ($this->reader) {
$this->uniq = $this->reader
->formatPath($uniq);
if (is_scalar($this->uniq)) {
if ((string) $this->uniq === '') {
$this->uniq = NULL;
}
}
elseif (empty($this->uniq)) {
$this->uniq = NULL;
}
return TRUE;
}
$this
->addError('You must have a reader to add unique path');
return FALSE;
}