first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class smImportCsvBackendComponents extends sfComponents {
|
||||
|
||||
public function executeImport() {
|
||||
$this->importType = null;
|
||||
|
||||
if ($this->getRequest()->getMethod() == sfRequest::POST) {
|
||||
|
||||
if ($this->hasRequestParameter('import_full'))
|
||||
$this->importType = 'full';
|
||||
|
||||
if($this->importType !== null && $this->getRequest()->getFileName('filename')) {
|
||||
$filename = sfConfig::get('sf_cache_dir').'/import_custom.csv';
|
||||
$this->getRequest()->moveFile('filename', $filename);
|
||||
$this->importFileSize = filesize($filename);
|
||||
} else
|
||||
$this->importType = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user