add contraint , that everybody expect admin is limited to 3 days, Add card package
This commit is contained in:
32
backend/models/CardPackageImportForm.php
Normal file
32
backend/models/CardPackageImportForm.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace backend\models;
|
||||
|
||||
use Yii;
|
||||
use yii\base\Model;
|
||||
use common\models\Card;
|
||||
use common\models\Customer;
|
||||
use common\models\Ticket;
|
||||
use common\models\Account;
|
||||
use yii\web\UploadedFile;
|
||||
|
||||
/**
|
||||
* ContactForm is the model behind the contact form.
|
||||
* @property \Yii\web\UploadedFile $file
|
||||
*/
|
||||
class CardPackageImportForm extends Model{
|
||||
|
||||
public $file;
|
||||
public $failed = 0;
|
||||
public $done = 0;
|
||||
|
||||
public function rules(){
|
||||
return [
|
||||
[['file'], 'file' ],
|
||||
[['file'], 'required' ],
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user