[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/lib/Quota/ -> command.php (sommaire)

(pas de description)

Poids: 96 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

IMP_Quota_command:: (3 méthodes):
  IMP_Quota_command()
  blockSize()
  getQuota()


Classe: IMP_Quota_command  - X-Ref

Implementation of the Quota API for IMAP servers with a unix quota command.
This requires a modified "quota" command that allows the httpd server
account to get quotas for other users. It also requires that your
web server and imap server be the same server or at least have shared
authentication and file servers (e.g. via NIS/NFS).  And last, it (as
written) requires the POSIX PHP extensions.

You must configure this driver in horde/imp/config/servers.php.  The
driver supports the following parameters:
'quota_path' => Path to the quota binary - REQUIRED
'grep_path'  => Path to the grep binary - REQUIRED
'partition'  => If all user mailboxes are on a single partition, the
partition label.  By default, quota will determine
quota information using the user's home directory value.

$Horde: imp/lib/Quota/command.php,v 1.11.10.13 2007/01/02 13:55:02 jan Exp $

Copyright 2002-2007 Eric Jon Rostetter <eric.rostetter@physics.utexas.edu>

See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

IMP_Quota_command($params = array()   X-Ref
Constructor

param: array $params  Hash containing connection parameters.

blockSize()   X-Ref
Get the disk block size, if possible.

We try to find out the disk block size from stat(). If not
available, stat() should return -1 for this value, in which
case we default to 1024 (for historical reasons). There are a
large number of reasons this may fail, such as OS support,
SELinux interference, the file being > 2 GB in size, the file
we're referring to not being readable, etc.

getQuota()   X-Ref
Get quota information (used/allocated), in bytes.

return: mixed  An associative array.



Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics