update Area + Device
This commit is contained in:
@@ -171,4 +171,16 @@ class common extends \yii\db\ActiveRecord {
|
||||
return $visible;
|
||||
}
|
||||
|
||||
public static function SaveViaTempFile($objWriter) {
|
||||
$filePath = rand(0, getrandmax()) . rand(0, getrandmax()) . ".tmp";
|
||||
$objWriter->save($filePath);
|
||||
readfile($filePath);
|
||||
unlink($filePath);
|
||||
}
|
||||
|
||||
public static function insertSystemLogs($data) {
|
||||
$model = new SystemLogs();
|
||||
return $model->create($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user