Class Services_Yadis_ManagerLoader

Description

A session helper class designed to translate between arrays and

objects. Note that the class used must have a constructor that takes no parameters. This is not a general solution, but it works for dumb objects that just need to have attributes set. The idea is that you'll subclass this and override $this->check($data) -> bool to implement your own session data validation.

Located in /Services/Yadis/Manager.php (line 199)

Services_Yadis_SessionLoader
   |
   --Services_Yadis_ManagerLoader
Method Summary
void check ( $data)
void newObject ( $data)
void prepareForLoad ( $data)
void prepareForSave ( $obj)
void requiredKeys ()
Methods
check (line 218)
void check ( $data)
  • $data

Redefinition of:
Services_Yadis_SessionLoader::check()
Override this.
newObject (line 210)
void newObject ( $data)
  • $data

Redefinition of:
Services_Yadis_SessionLoader::newObject()
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.
prepareForLoad (line 223)
void prepareForLoad ( $data)
  • $data

Redefinition of:
Services_Yadis_SessionLoader::prepareForLoad()
Prepares the data array by making any necessary changes.
prepareForSave (line 233)
void prepareForSave ( $obj)
  • $obj

Redefinition of:
Services_Yadis_SessionLoader::prepareForSave()
Override this.
requiredKeys (line 200)
void requiredKeys ()

Inherited Methods

Inherited From Services_Yadis_SessionLoader

Services_Yadis_SessionLoader::check()
Services_Yadis_SessionLoader::fromSession()
Services_Yadis_SessionLoader::newObject()
Services_Yadis_SessionLoader::prepareForLoad()
Services_Yadis_SessionLoader::prepareForSave()
Services_Yadis_SessionLoader::toSession()

Documentation generated on Mon, 10 Sep 2007 13:29:29 -0700 by phpDocumentor 1.3.2