本文整理汇总了PHP中Archive::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Archive::get方法的具体用法?PHP Archive::get怎么用?PHP Archive::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Archive
的用法示例。
在下文中一共展示了Archive::get方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Archive
/**
* Removes all the ZIPs
*
* @author Woxxy
* @returns bool
*/
function remove_all()
{
$archives = new Archive();
$archives->get();
foreach ($archive->all as $archive) {
$archive->remove();
}
}
示例2: Archive
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* create a archive dump of a database
*
* Calendar
*
* 07/09/2004 by Christian Ehret chris@uffbasse.de
*/
$nocachecontrol = true;
include_once "../includes/default.inc.php";
include_once "archiveclass.inc.php";
$archive = new Archive();
$auth->is_authenticated();
$database = $request->getVar('frm_database', 'post');
$filename = $database . "_archive_" . date("Ymd") . ".sql";
$date = $request->getVar('frm_thedate', 'post');
if ($request->getVar('frm_delete') == 'yes') {
$delete = true;
} else {
$delete = false;
}
$output = $archive->get($date, $delete);
header("Cache-control: private");
header("Content-type: application/txt");
header("Content-Disposition: attachment; filename=\"{$filename}\"");
echo $output;