Net_LDAP2_SimpleFileSchemaCache __construct(
array
$cfg)
|
|
Initialize the simple cache
Config is as following: path Complete path to the cache file. max_age Maximum age of cache in seconds, 0 means "endlessly".
Parameters:
Net_LDAP2_Schema|Net_LDAP2_Error|false loadSchema(
)
|
|
Return the schema object from the cache
If file is existent and cache has not expired yet, then the cache is deserialized and returned.
true|Net_LDAP2_Error|false storeSchema(
mixed
$schema)
|
|
Store a schema object in the cache
This method will be called, if Net_LDAP2 has fetched a fresh schema object from LDAP and wants to init or refresh the cache.
To invalidate the cache and cause Net_LDAP2 to refresh the cache, you can call this method with null or false as value. The next call to $ldap->schema() will then refresh the caches object.
Parameters: