ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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. More...
 
 check ($data)
 Override this. More...
 
 prepareForLoad ($data)
 Prepares the data array by making any necessary changes. More...
 
 prepareForSave ($obj)
 Override this. More...
 
- Public Member Functions inherited from Auth_Yadis_SessionLoader
 check ($data)
 Override this. More...
 
 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. More...
 
 prepareForLoad ($data)
 Prepares the data array by making any necessary changes. More...
 
 newObject ($data)
 Returns a new instance of this loader's class, using the session data to construct it if necessary. More...
 
 toSession ($obj)
 Returns an array of keys and values built from the attributes of $obj. More...
 
 prepareForSave ($obj)
 Override this. More...
 

Detailed Description

Definition at line 223 of file Manager.php.

Member Function Documentation

◆ check()

Auth_Yadis_ManagerLoader::check (   $data)

Override this.

@access private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 242 of file Manager.php.

243 {
244 return is_array($data['services']);
245 }
$data

References $data.

◆ newObject()

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.

@access private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 234 of file Manager.php.

235 {
236 return new Auth_Yadis_Manager($data['starting_url'],
237 $data['yadis_url'],
238 $data['services'],
239 $data['session_key']);
240 }

References $data.

◆ prepareForLoad()

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).

@access private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 247 of file Manager.php.

248 {
250 $services = array();
251 foreach ($data['services'] as $s) {
252 $services[] = $loader->fromSession($s);
253 }
254 return array('services' => $services);
255 }
$loader

References $data, and $loader.

◆ prepareForSave()

Auth_Yadis_ManagerLoader::prepareForSave (   $obj)

Override this.

@access private

Reimplemented from Auth_Yadis_SessionLoader.

Definition at line 257 of file Manager.php.

258 {
260 $services = array();
261 foreach ($obj->services as $s) {
262 $services[] = $loader->toSession($s);
263 }
264 return array('services' => $services);
265 }

References $loader.

◆ requiredKeys()

Auth_Yadis_ManagerLoader::requiredKeys ( )

Definition at line 224 of file Manager.php.

225 {
226 return array('starting_url',
227 'yadis_url',
228 'services',
229 'session_key',
230 '_current',
231 'stale');
232 }

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