Browse Source

ajout info url de base

master
Cabillot Julien 5 years ago
parent
commit
3dff808f70
1 changed files with 3 additions and 0 deletions
  1. 3
      lib/Download.php

3
lib/Download.php

@ -4,6 +4,7 @@ class Download {
public $_id;
public $timestamp;
public $premURL;
public $url;
public $filename;
public $cstate;
static public $validStates = ['added', 'downloaded', 'dupp'];
@ -49,6 +50,7 @@ class Download {
'_id' => new MongoId(),
'timestamp' => $myTime,
'premURL' => $premInfos['location'],
'url' => $url,
'filename' => $premInfos['filename'],
'cstate' => 'added'
];
@ -73,6 +75,7 @@ class Download {
$this->_id = $dbRet['_id'];
$this->timestamp = $dbRet['timestamp'];
$this->premURL = $dbRet['premURL'];
$this->url = $dbRet['url'];
$this->filename = $dbRet['filename'];
$this->cstate = $dbRet['cstate'];
}

Loading…
Cancel
Save