Peta
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
cardSet Class Reference

Public Member Functions

 setSetId ($setid)
 
 setSetName ($setname)
 
 setSetDescription ($description)
 
 addQuestion ($question)
 
 getSetId ()
 
 getSetDescription ()
 
 getSetName ()
 
 getQuestions ()
 
 newQuestion ($question, $connection)
 
 getQuestionById ($questionid)
 
 deleteSet ($connection)
 
 updateSetDescription ($description, $connection)
 
 updateSetName ($name, $connection)
 

Detailed Description

A cardset is a stock of questions It's like you've some papers and, on the backside a answer, on the front the question. This is the stock of these.

Author
skamster

Member Function Documentation

cardSet::addQuestion (   $question)

Add a question to the set (but not to the database)

Parameters
Question$question
Returns
nothing
cardSet::getSetDescription ( )

getter for the set-description

Returns
String description
cardSet::getSetId ( )

getter for the set-id

Returns
int id
cardSet::getSetName ( )

getter for the set-name

Returns
unknown_type
cardSet::newQuestion (   $question,
  $connection 
)

Create a new question

Parameters
question$question
unknown_type$connection
cardSet::setSetDescription (   $description)

Set the description of the set

Parameters
String$description
Returns
nothing
cardSet::setSetId (   $setid)

set the id

Parameters
int$setid
Returns
nothing
cardSet::setSetName (   $setname)

Set the name of the set

Parameters
String$setname
Returns
nothing

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