update Area + Device

This commit is contained in:
2020-10-08 17:12:19 +07:00
parent 2d15fc1c14
commit 0273aa2179
31 changed files with 1475 additions and 557 deletions

View File

@@ -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);
}
}