phpDocumentor KuoteObjects
QuestionSet
[ class tree: KuoteObjects ] [ index: KuoteObjects ] [ all elements ]

Class: KuoteObjects_QuestionSet

Source Location: /classes/KuoteObjects/QuestionSet.php

Class KuoteObjects_QuestionSet

Class Overview

Implements interfaces:

KuoteObjects QuestionSet

The KuoteObjects QuestionSet represents a collection of Question objects in the Kuote system. It must implement the interfaces KuoteInterfaces_ObjectSet, and KuoteInterfaces_QuestionSet.

Located in /classes/KuoteObjects/QuestionSet.php [line 20]



		
				Author(s):
		
  • Kyle Hall
Information Tags:
Copyright:  2006

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
KuoteObjects_Quiz KuoteObjects Quiz

[ Top ]
Property Summary
mixed   $questions   Array to hold Question objects

[ Top ]
Method Summary
integer   count()   Returns the number of Enrollments in this set.
KuoteObjects_LearningOffering   fetch()   Returns the first Question in the set on the first call.
integer   getByLearningId()   Populates the question set with questions that are part of the given Learning's quiz.
boolean   reset()   After calling reset(), fetch() will begin from the beginning of the set again.

[ Top ]
Properties
mixed   $questions = array() [line 26]

Array to hold Question objects

API Tags:
Access:  protected


[ Top ]
Methods
count  [line 65]

  integer count( )

Returns the number of Enrollments in this set.


API Tags:
Return:  Number of Enrollments currently in this set.
Access:  public


[ Top ]
fetch  [line 38]

Returns the first Question in the set on the first call.

The next Question in the set on each successive call.

Example:

  1.  while $question $questionSet->fetch(doSomething()}


API Tags:
Return:  A LearningOffering object. OR boolean False if there are no more LearningOfferings in the set.
Access:  public


[ Top ]
getByLearningId  [line 75]

  integer getByLearningId( integer $learningId  )

Populates the question set with questions that are part of the given Learning's quiz.

Parameters:
integer   $learningId:  The Id of the Learning whose questions to find.

API Tags:
Return:  Number of questions found
Access:  public


[ Top ]
reset  [line 56]

  boolean reset( )

After calling reset(), fetch() will begin from the beginning of the set again.


API Tags:
Return:  True on successful reset, false otherwise.
Access:  public


[ Top ]

Documentation generated on Fri, 15 Dec 2006 11:18:24 -0500 by phpDocumentor 1.3.0