Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitBackendCouchDbFaqQuestionView

Faq::CouchDbBackend::arbitBackendCouchDbFaqQuestionView

Class arbitBackendCouchDbFaqQuestionView

View on FAQ questions

View on FAQ questions

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

Member Variables

protected array $viewDefinitions = array(
// Index all questions by all categories they are assigned to.
//
// @TODO: The future CouchDB feature reduce() will help a lot here.
'questions' => 'function( doc )
{
if ( doc.type == "faq_question" && doc.answer != null )
{
for ( var i = 0; i < doc.categories.length; ++i )
{
emit( doc.categories[i], doc._id );
}
}
}',
// List of all unanswered questions
'unanswered' => 'function( doc )
{
if ( doc.type == "faq_question" && doc.answer == null )
{
emit( doc._id, null );
}
}',
)

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:14 +0200 by phpDocumentor 1.4.3