Class GradingManager

Description

<p> GradingManager handles creating and deleting:

  • GradableObject,
  • GradeRecord

and getting:

  • GradableObject,
  • GradeRecords,
  • 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/grading/GradingManager.php (line 62)

OsidManager
   |
   --GradingManager
Direct descendents
Class Description
HarmoniGradingManager <p> GradingManager handles creating and deleting:
Method Summary
object GradableObject createGradableObject (string $displayName, string $description, object Id $courseSectionId, object Id $externalReferenceId, object Type $gradeType, object Type $scoringDefinition, object Type $gradeScale, mixed $gradeWeight, int $gradeWeight )
object GradeRecord createGradeRecord (object Id $gradableObjectId, object Id $agentId, object mixed $gradeValue, mixed $GradeRecordType, object Type $GradeRecordType )
void deleteGradableObject (mixed $gradableObjectId, object Id $gradableObjectId )
void deleteGradeRecord (object Id $gradableObjectId, object Id $agentId, mixed $GradeRecordType, object Type $GradeRecordType )
object GradableObject getGradableObject (mixed $gradableObjectId, object Id $gradableObjectId )
object GradableObjectIterator getGradableObjects (object Id $courseSectionId, mixed $externalReferenceId, object Id $externalReferenceId )
object GradeRecordIterator getGradeRecords (object Id $courseSectionId, object Id $externalReferenceId, object Id $gradableObjectId, object Id $agentId, mixed $GradeRecordType, object Type $GradeRecordType )
Methods
createGradableObject (line 97)

Create a new GradableObject which includes all the elements for grading something for a CourseSection. The type of grade and other grade characteristics are also specified.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_TYPE
object GradableObject createGradableObject (string $displayName, string $description, object Id $courseSectionId, object Id $externalReferenceId, object Type $gradeType, object Type $scoringDefinition, object Type $gradeScale, mixed $gradeWeight, int $gradeWeight )

Redefined in descendants as:
createGradeRecord (line 218)

Create a new GradeRecord for an Agent and with a Grade and

GradeRecordType. The GradeRecordType is they Type of GradeRecord not the Type of Grade contained in it. GradeRecord Types might indicate a mid-term, partial, or final grade while GradeTypes might be letter, numeric, etc. The Agent in this context is not the person who took the test nor, necessarily, the person who is grading. It is the person whose "GradeBook" this is, for example the CourseSection instructor.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID, UNKNOWN_TYPE
object GradeRecord createGradeRecord (object Id $gradableObjectId, object Id $agentId, object mixed $gradeValue, mixed $GradeRecordType, object Type $GradeRecordType )

Redefined in descendants as:
deleteGradableObject (line 122)

Delete a GradableObject.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
void deleteGradableObject (mixed $gradableObjectId, object Id $gradableObjectId )

Redefined in descendants as:
deleteGradeRecord (line 245)

Delete a GradableObject.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
void deleteGradeRecord (object Id $gradableObjectId, object Id $agentId, mixed $GradeRecordType, object Type $GradeRecordType )

Redefined in descendants as:
getGradableObject (line 149)

Get a GradableObject by unique Id.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
object GradableObject getGradableObject (mixed $gradableObjectId, object Id $gradableObjectId )

Redefined in descendants as:
getGradableObjects (line 180)

Get all the GradableObjects, optionally including only those for a specific CourseSection or External Reference to what is being graded.

If any parameter is null, what is returned is not filtered by that parameter.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID
object GradableObjectIterator getGradableObjects (object Id $courseSectionId, mixed $externalReferenceId, object Id $externalReferenceId )

Redefined in descendants as:
getGradeRecords (line 286)

Get all the GradeRecords, optionally including only those for a specific

CourseSection, GradableObject, External Reference to what is being graded, GradeRecordType, or Agent. If any parameter is null, what is returned is not filtered by that parameter. For example, getGradeRecords(xyzCourseSectionId,null,null,null,null) returns all GradeRecords for the xyzCourseSection; and getGradeRecords(xyzCourseSectionId,null,null,myAgent,quizGradeRecordType) returns all GradeRecords for quizzes taken by myAgent in the xyzCourseSection.

  • access: public
  • throws: object GradingException An exception with one of the following messages defined in org.osid.grading.GradingException may be thrown: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT, UNKNOWN_ID, UNKNOWN_TYPE
object GradeRecordIterator getGradeRecords (object Id $courseSectionId, object Id $externalReferenceId, object Id $gradableObjectId, object Id $agentId, mixed $GradeRecordType, object Type $GradeRecordType )

Redefined in descendants as:
getGradeRecordTypes (line 308)

Get all GradeRecordTypes.

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

Redefined in descendants as:
getGradeScales (line 374)

Get all GradeScales.

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

Redefined in descendants as:
getGradeTypes (line 330)

Get all GradeTypes.

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

Redefined in descendants as:
getScoringDefinitions (line 352)

Get all ScoringDefinitions.

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

Redefined in descendants as:

Inherited Methods

Inherited From OsidManager

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

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