Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitBackendCouchDbNotificationStorageView

Notification::arbitBackendCouchDbNotificationStorageView

Class arbitBackendCouchDbNotificationStorageView

View on user notifications

View on user notifications

phpillowView
   |
   --arbitBackendCouchDbNotificationStorageView
Author(s):
Version:   $Revision: 1236 $
License:   GPL

Member Variables

protected array $viewDefinitions = array(
// Fetch all users which registered for one signal, maintaing the used
// messeging interface.
//
// @TODO: The future CouchDB feature reduce() will help a lot here.
'users' => 'function( doc )
{
if ( doc.type == "notification_storage" )
{
for ( var property in doc.settings )
{
for ( var i = 0; i < doc.settings[property].length; ++i )
{
emit( doc.settings[property][i], {
"user": doc.user,
"type": property,
} );
}
}
}
}',
)

View functions to be registered on the server

View functions to be registered on the server

Method Summary

protected string getViewName( )
Get name of view

Methods

getViewName

string getViewName( )

Get name of view

Get name of view Get name of view

Documentation generated on Mon, 05 Apr 2010 14:02:07 +0200 by phpDocumentor 1.4.3