Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/cursor/NuanceImportCursor.php
<?php | <?php | ||||
abstract class NuanceImportCursor extends Phobject { | abstract class NuanceImportCursor extends Phobject { | ||||
private $cursorData; | private $cursorData; | ||||
private $cursorKey; | private $cursorKey; | ||||
private $source; | private $source; | ||||
private $viewer; | |||||
abstract protected function shouldPullDataFromSource(); | abstract protected function shouldPullDataFromSource(); | ||||
abstract protected function pullDataFromSource(); | abstract protected function pullDataFromSource(); | ||||
final public function getCursorType() { | final public function getCursorType() { | ||||
return $this->getPhobjectClassConstant('CURSORTYPE', 32); | return $this->getPhobjectClassConstant('CURSORTYPE', 32); | ||||
} | } | ||||
Show All 19 Lines | public function setCursorKey($cursor_key) { | ||||
$this->cursorKey = $cursor_key; | $this->cursorKey = $cursor_key; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getCursorKey() { | public function getCursorKey() { | ||||
return $this->cursorKey; | return $this->cursorKey; | ||||
} | } | ||||
public function setViewer($viewer) { | |||||
$this->viewer = $viewer; | |||||
return $this; | |||||
} | |||||
public function getViewer() { | |||||
return $this->viewer; | |||||
} | |||||
final public function importFromSource() { | final public function importFromSource() { | ||||
if (!$this->shouldPullDataFromSource()) { | if (!$this->shouldPullDataFromSource()) { | ||||
return false; | return false; | ||||
} | } | ||||
$source = $this->getSource(); | $source = $this->getSource(); | ||||
$key = $this->getCursorKey(); | $key = $this->getCursorKey(); | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |