Class AssessmentManager

Description

<p> AssessmentManager handles creating and deleting:

  • Assessment,
  • AssessmentPublished,
  • Item,
  • Section;

and getting:

  • Assessment,
  • AssessmentPublished,
  • Item,
  • Section,
  • various implementation Types.
</p>

<p> All implementations of OsidManager (manager) provide methods for accessing and manipulating the various objects defined in the OSID package. A manager defines an implementation of an OSID. All other OSID objects come either directly or indirectly from the manager. New instances of the OSID objects are created either directly or indirectly by the manager. Because the OSID objects are defined using interfaces, create methods must be used instead of the new operator to create instances of the OSID objects. Create methods are used both to instantiate and persist OSID objects. Using the OsidManager class to define an OSID's implementation allows the application to change OSID implementations by changing the OsidManager package name used to load an implementation. Applications developed using managers permit OSID implementation substitution without changing the application source code. As with all managers, use the OsidLoader to load an implementation of this interface. </p>

<p></p>

<p> OSID Version: 2.0 </p>

<p> Licensed under the org.osid.SidImplementationLicenseMIT. </p>

Located in /harmoni/oki2/osid/assessment/AssessmentManager.php (line 74)

OsidManager
   |
   --AssessmentManager
Method Summary
object Assessment createAssessment (string $name, string $description, mixed $assessmentType, object Type $assessmentType )
object Item createItem (string $name, string $description, mixed $itemType, object Type $itemType )
object Section createSection (string $name, string $description, mixed $sectionType, object Type $sectionType )
void deleteAssessment (mixed $assessmentId, object Id $assessmentId )
void deleteAssessmentPublished (mixed $assessmentPublishedId, object Id $assessmentPublishedId )
void deleteItem (mixed $itemId, object Id $itemId )
void deleteSection (mixed $sectionId, object Id $sectionId )
object Assessment getAssessment (mixed $assessmentId, object Id $assessmentId )
object AssessmentPublished getAssessmentPublished (mixed $assessmentPublishedId, object Id $assessmentPublishedId )
object AssessmentIterator getAssessmentsByType (mixed $assessmentType, object Type $assessmentType )
object Item getItem (mixed $itemId, object Id $itemId )
object ItemIterator getItemsByType (mixed $itemType, object Type $itemType )
object Section getSection (mixed $sectionId, object Id $sectionId )
object SectionIterator getSectionsByType (mixed $sectionType, object Type $sectionType )
Methods
createAssessment (line 104)

Create a new Assessment and add it to the Assessment Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object Assessment createAssessment (string $name, string $description, mixed $assessmentType, object Type $assessmentType )
  • string $name
  • string $description
  • object Type $assessmentType
createAssessmentPublished (line 511)

Create an AssessmentPublished based on an Assessment.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
object AssessmentPublished createAssessmentPublished (mixed $assessment, object Assessment $assessment )
createItem (line 378)

Create a new Item and add it to the Item Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object Item createItem (string $name, string $description, mixed $itemType, object Type $itemType )
  • string $name
  • string $description
  • object Type $itemType
createSection (line 241)

Create a new Section and add it to the Section Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object Section createSection (string $name, string $description, mixed $sectionType, object Type $sectionType )
  • string $name
  • string $description
  • object Type $sectionType
deleteAssessment (line 130)

Delete an Assessment from the Assessment Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
void deleteAssessment (mixed $assessmentId, object Id $assessmentId )
deleteAssessmentPublished (line 537)

Delete an AssessmentPublished.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
void deleteAssessmentPublished (mixed $assessmentPublishedId, object Id $assessmentPublishedId )
deleteItem (line 404)

Delete an Item from the Item Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
void deleteItem (mixed $itemId, object Id $itemId )
deleteSection (line 267)

Delete a Section from the Section Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED , NULL_ARGUMENT, UNKNOWN_ID
void deleteSection (mixed $sectionId, object Id $sectionId )
getAssessment (line 158)

Get the Assessment with the specified unique Id

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
object Assessment getAssessment (mixed $assessmentId, object Id $assessmentId )
getAssessmentPublished (line 565)

Get the specified AssessmentPublished.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
object AssessmentPublished getAssessmentPublished (mixed $assessmentPublishedId, object Id $assessmentPublishedId )
getAssessments (line 210)

Get all the Assessments in the Assessment Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object AssessmentIterator getAssessments ()
getAssessmentsByType (line 187)

Get all the Assessments of a specific Type.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object AssessmentIterator getAssessmentsByType (mixed $assessmentType, object Type $assessmentType )
getAssessmentsPublished (line 588)

Get all the Assessments published.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object AssessmentPublishedIterator getAssessmentsPublished ()
getAssessmentTypes (line 611)

Get all the Assessment Types.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object TypeIterator getAssessmentTypes ()
getEvaluationTypes (line 680)

Get all the Evaluation Types.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object TypeIterator getEvaluationTypes ()
getItem (line 432)

Get the Item with the specified unique Id

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
object Item getItem (mixed $itemId, object Id $itemId )
getItems (line 484)

Get all the Items in the Item Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object ItemIterator getItems ()
getItemsByType (line 461)

Get all the Items of a specific Type.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object ItemIterator getItemsByType (mixed $itemType, object Type $itemType )
getItemTypes (line 657)

Get all the Item Types.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object TypeIterator getItemTypes ()
getSection (line 295)

Get the Section with the specified unique Id

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
object Section getSection (mixed $sectionId, object Id $sectionId )
getSections (line 347)

Get all the Sections in the Section Bank.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object SectionIterator getSections ()
getSectionsByType (line 324)

Get all the Sections of a specific Type.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object SectionIterator getSectionsByType (mixed $sectionType, object Type $sectionType )
getSectionTypes (line 634)

Get all the Section Types.

  • access: public
  • throws: object AssessmentException An exception with one of the following messages defined in org.osid.assessment.AssessmentException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED
object TypeIterator getSectionTypes ()

Inherited Methods

Inherited From OsidManager

OsidManager::assignConfiguration()
OsidManager::assignOsidContext()
OsidManager::getOsidContext()
OsidManager::osidVersion_2_0()

Documentation generated on Wed, 19 Sep 2007 10:21:32 -0400 by phpDocumentor 1.3.0RC3