add multiple detsta upload

This commit is contained in:
2016-04-30 12:32:28 +02:00
parent 776e0ea3e0
commit 6458a72936
5 changed files with 80 additions and 20 deletions

View File

@@ -24,6 +24,8 @@ class DetStatProcessor extends Object{
/**aktuális koteg, config paraméterként kapju*/
public $koteg;
public $path;
public $idKoteg;
public $detstatUzenet;
public $megbizasok;
@@ -44,6 +46,7 @@ class DetStatProcessor extends Object{
$saver = new DetStaDBSave(
[
'giroDETSTA' => $this->detstatUzenet,
'path' => $this->path,
'koteg' => $this->koteg,
'idUser' =>\Yii::$app->user->id
]);
@@ -71,7 +74,7 @@ class DetStatProcessor extends Object{
public function readDetstaUzenet(){
$filename = \Yii::getAlias("@webroot") ."/" .$this->koteg->desta_path;
$filename = \Yii::getAlias("@webroot") ."/" .$this->path;
$content = file_get_contents($filename);
$this->detstatUzenet = GiroDETSTA::parse($content);