protected function sourceHook() { if ($this->sourceHook === null) { $this->sourceHook = ImportSourceHook::loadByName($this->source->source_name, $this->connection()); } return $this->sourceHook; }
/** * Checksum of all available rows * * @return string */ protected function &rawData() { if ($this->data === null) { $this->data = ImportSourceHook::loadByName($this->source->source_name, $this->connection)->fetchData(); } return $this->data; }
protected function getImportSource() { if ($this->importSource === null) { if ($this->hasObject()) { $src = ImportSource::load($this->object->source_id, $this->db); } else { $src = ImportSource::load($this->getSentValue('source_id'), $this->db); } $this->importSource = ImportSourceHook::loadByName($src->source_name, $this->db); } return $this->importSource; }