Exemplo n.º 1
0
 public function __construct($bean = null, $view_object_map = array())
 {
     parent::__construct($bean, $view_object_map);
     $this->currentStep = isset($_REQUEST['current_step']) ? $_REQUEST['current_step'] + 1 : 1;
     $this->importModule = isset($_REQUEST['import_module']) ? $_REQUEST['import_module'] : '';
     if (isset($_REQUEST['from_admin_wizard']) && $_REQUEST['from_admin_wizard']) {
         $this->importModule = 'Administration';
     }
 }
Exemplo n.º 2
0
 public function __construct($bean = null, $view_object_map = array())
 {
     parent::__construct($bean, $view_object_map);
     $this->externalSource = isset($_REQUEST['external_source']) ? $_REQUEST['external_source'] : '';
     $this->offset = isset($_REQUEST['offset']) ? $_REQUEST['offset'] : '0';
     $this->recordsPerImport = !empty($_REQUEST['records_per_import']) ? $_REQUEST['records_per_import'] : $this->recordsPerImport;
     $this->importSource = $this->getExternalSourceAdapter();
     $this->importSource->setCurrentOffset($this->offset);
     $GLOBALS['log']->fatal("Initiating external source import- source:{$this->externalSource}, offset: {$this->offset}, recordsPerImport: {$this->recordsPerImport}");
 }