[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> SessionObjects.php (sommaire)

(pas de description)

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

Définit 1 class

Horde_SessionObjects:: (10 méthodes):
  singleton()
  Horde_SessionObjects()
  storeOid()
  store()
  overwrite()
  query()
  setPruneFlag()
  oid()
  _pruneOids()
  _prune()


Classe: Horde_SessionObjects  - X-Ref

The Horde_SessionObjects:: class provides a way for storing data
(usually, but not necessarily, objects) in the current user's
session.

$Horde: framework/SessionObjects/SessionObjects.php,v 1.6.12.8 2006/01/01 21:28:35 jan Exp $

Copyright 2003-2006 Chuck Hagenbuch <chuck@horde.org>

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

singleton()   X-Ref
Returns a reference to the global Horde_SessionObjects object,
only creating it if it doesn't already exist.

This method must be invoked as:
$objectstore = &Horde_SessionObjects::singleton();

return: Horde_SessionObjects  The Horde_SessionObjects instance.

Horde_SessionObjects($params = array()   X-Ref
Constructor.

param: array $params  The parameter array.

storeOid($data, $prune = true)   X-Ref
Wrapper around store that will return the oid instead.

param: mixed $data     The data to store in the session store.
param: boolean $prune  If false, this object will not be pruned from the
return: string  The MD5 string representing the object's ID.

store($oid, $data, $prune = true)   X-Ref
Attempts to store an object in the session store.

param: string $oid     Object ID used as the storage key.
param: mixed $data     The data to store in the session store.
param: boolean $prune  If false, this object will not be pruned from the
return: boolean  True on success, false on failure.

overwrite($oid, $data, $prune = true)   X-Ref
Overwrites a current element in the object store.

param: string $oid     Object ID used as the storage key.
param: mixed $data     The data to store in the session store.
param: boolean $prune  If false, this object will not be pruned from the
return: boolean  True on success, false on failure.

query($oid, $type = null, $val = null)   X-Ref
Attempts to retrive an object from the store.

param: string $oid   Object ID to query.
param: enum $type    NOT USED
param: integer $val  NOT USED
return: mixed  The requested object, or false on failure.

setPruneFlag($oid, $prune)   X-Ref
Sets the prune flag on a store object.

param: string $oid     The object ID.
param: boolean $prune  True to allow pruning, false for no pruning.

oid($data)   X-Ref
Generates an OID for an object.

param: mixed $data  The data to store in the store.
return: string $oid  An object ID to use as the storage key.

_pruneOids()   X-Ref
Generate the list of prunable oids.


_prune()   X-Ref
Prune old store entries at request shutdown.




Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7