ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_Yadis_ManagerLoader Class Reference
+ Inheritance diagram for Auth_Yadis_ManagerLoader:
+ Collaboration diagram for Auth_Yadis_ManagerLoader:

Public Member Functions

 requiredKeys ()
 newObject ($data)
 Returns a new instance of this loader's class, using the session data to construct it if necessary.
 check ($data)
 Override this.
 prepareForLoad ($data)
 Prepares the data array by making any necessary changes.
 prepareForSave ($obj)
 Override this.
- Public Member Functions inherited from Auth_Yadis_SessionLoader
 fromSession ($data)
 Given a session data value (an array), this creates an object (returned by $this->newObject()) whose attributes and values are those in $data.
 toSession ($obj)
 Returns an array of keys and values built from the attributes of $obj.

Detailed Description

Definition at line 223 of file Manager.php.

Member Function Documentation

Auth_Yadis_ManagerLoader::check (   $data)

Override this.

private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 242 of file Manager.php.

References $data.

{
return is_array($data['services']);
}
Auth_Yadis_ManagerLoader::newObject (   $data)

Returns a new instance of this loader's class, using the session data to construct it if necessary.

The object need only be created; $this->fromSession() will take care of setting the object's attributes.

private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 234 of file Manager.php.

References $data.

{
return new Auth_Yadis_Manager($data['starting_url'],
$data['yadis_url'],
$data['services'],
$data['session_key']);
}
Auth_Yadis_ManagerLoader::prepareForLoad (   $data)

Prepares the data array by making any necessary changes.

Returns an array whose keys and values will be used to update the original data array before calling $this->newObject($data).

private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 247 of file Manager.php.

References $data, and $loader.

{
$services = array();
foreach ($data['services'] as $s) {
$services[] = $loader->fromSession($s);
}
return array('services' => $services);
}
Auth_Yadis_ManagerLoader::prepareForSave (   $obj)

Override this.

private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 257 of file Manager.php.

References $loader.

{
$services = array();
foreach ($obj->services as $s) {
$services[] = $loader->toSession($s);
}
return array('services' => $services);
}
Auth_Yadis_ManagerLoader::requiredKeys ( )

Definition at line 224 of file Manager.php.

{
return array('starting_url',
'yadis_url',
'services',
'session_key',
'_current',
'stale');
}

The documentation for this class was generated from the following file: