add multiple detsta upload
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user