API documentation :: Docs For Class arbitCouchDbFaqQuestionFacade
Packages:Interfaces:Classes:
|
Faq::Facade::arbitCouchDbFaqQuestionFacadeClass arbitCouchDbFaqQuestionFacadeQuestion facade defining all methods required to access question related data in the backend. Question facade defining all methods required to access question related data in the backend. Implements interfaces:arbitCouchDbFacadeBase | --arbitCouchDbFaqQuestionFacadeAuthor(s):
Inherited Member Variables
Method Summary
Inherited Methods
MethodscreateQuestion
mixed
createQuestion(
string
$text
)
Create a new question Create a new question with the given name. if there already is a question with the given name. Create a new question Create a new question with the given name. An exception will be thrown if there already is a question with the given name. The ID generated by the backend in some way is returned for later reference. The type of the identifier depends on the backend, no assumptions should be made here. Parameters:
Implementation of:
deleteQuestion
void
deleteQuestion(
string
$id
)
Delete a question Delete the question with the given ID permanently from the backend. Delete a question Delete the question with the given ID permanently from the backend. Parameters:
Implementation of:
getQuestionData
array
getQuestionData(
string
$question
)
Get question data Get question data Get data for the given question id. The data should be returned as an array, and should contain the following keys:
Parameters:
Implementation of:
getQuestionsFromCategory
array
getQuestionsFromCategory(
[array
$category
= null] )
Get array of questions Returns an array with questions. path, to select a subtree of sections to fetch. under the node /foo/bar you would pass array( 'foo', 'bar' ) to the method. Get array of questions Returns an array with questions. You may optionally specify the category path, to select a subtree of sections to fetch. To fetch the questions under the node /foo/bar you would pass array( 'foo', 'bar' ) to the method. Parameters:
Implementation of:
getUnansweredQuestions
array
getUnansweredQuestions(
)
Get array of unanswered questions Returns an array with all questions which do not have an answer yet. Get array of unanswered questions Returns an array with all questions which do not have an answer yet. Implementation of:
updateQuestionData
void
updateQuestionData(
string
$question
, array
$data
)
Update stored information for the given question The array with the information to update may any number of the common keys, and only the given keys will be updated in the storage backend. Update stored information for the given question The array with the information to update may any number of the common keys, and only the given keys will be updated in the storage backend. Parameters:
Implementation of:
Documentation generated on Mon, 05 Apr 2010 14:02:14 +0200 by phpDocumentor 1.4.3
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||