Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added DB Restore functionality to plugin
- Loading branch information
1 parent
fe7f30e
commit ab5028d
Showing
3 changed files
with
164 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Reporter plugin for Craft CMS 3.x | ||
* | ||
* Reporter plugin for Craft CMS. | ||
* | ||
* @link https://www.webmenedzser.hu | ||
* @copyright Copyright (c) 2020 Ottó Radics | ||
*/ | ||
|
||
namespace webmenedzser\reporter\helpers; | ||
|
||
/** | ||
* @author Ottó Radics | ||
* @package Reporter | ||
* @since 1.10.0 | ||
*/ | ||
class FilenameHelper | ||
{ | ||
public static function getFilename($prefix, $slug, $extension) | ||
{ | ||
return $prefix . '-' . $slug . '-' . date('Ymd-His') . '.' . $extension; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters