Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezquiztool.php
Go to the documentation of this file.
1 <?php
3 //
4 // $Id: ezquiztool.php 8687 2001-12-06 10:19:29Z jhe $
5 //
6 // Created on: <28-May-2001 11:24:41 pkej>
7 //
8 // This source file is part of Exponential Basic, publishing software.
9 //
10 // Copyright (C) 1999-2001 eZ Systems. All rights reserved.
11 //
12 // This program is free software; you can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program; if not, write to the Free Software
24 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
25 //
26
27 // include_once( "classes/ezcachefile.php" );
28
31
36 class eZQuizTool
37 {
42 static public function deleteCache()
43 {
44 $user =& eZUser::currentUser();
45
46 $files =& eZCacheFile::files( "kernel/ezquiz/cache/",
47 array( "quizlist", "quizfuture", "quizpast", "quizopen", "quizscore", "quizscores", NULL ), "cache", "," );
48 foreach ( $files as $file )
49 {
50 $file->delete();
51 }
52
53 }
54 }
55
56 ?>
$files
$files
Definition: articlepreview.php:91
eZQuizTool
Definition: ezquiztool.php:37
eZQuizTool\deleteCache
static deleteCache()
Definition: ezquiztool.php:42
eZUser\currentUser
static & currentUser()
Definition: ezuser.php:896
$file
$file
Definition: ezfilemanager/user/filedownload.php:35
$user
$user
Definition: user/adlist.php:39
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.