1: <?php
2: /**
3: * The IMP_Quota_Null:: is a null implementation of the quota driver.
4: *
5: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (GPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/gpl.
9: *
10: * @author Michael Slusarz <slusarz@horde.org>
11: * @category Horde
12: * @license http://www.horde.org/licenses/gpl GPL
13: * @package IMP
14: */
15: class IMP_Quota_Null extends IMP_Quota_Base
16: {
17: /**
18: * Get quota information (used/allocated), in bytes.
19: *
20: * @return array An array with the following keys:
21: * 'limit' = Maximum quota allowed
22: * 'usage' = Currently used portion of quota (in bytes)
23: * @throws IMP_Exception
24: */
25: public function getQuota()
26: {
27: return array(
28: 'limit' => 0,
29: 'usage' => 0
30: );
31: }
32:
33: }
34: