Beispiel #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="workforcePersonalRefId">The ID (GUID) of a teacher, staff member, or other employee participating in a non-learner capacity within this group.</param>
 ///<param name="role">The role associated with this person in the context of this group.</param>
 ///
 public Teacher( string workforcePersonalRefId, GroupRole role )
     : base(SchoolDTD.TEACHER)
 {
     this.WorkforcePersonalRefId = workforcePersonalRefId;
     this.SetRole( role );
 }
Beispiel #2
0
 /// <summary>
 /// Sets the value of the <c>&lt;Role&gt;</c> element.
 /// </summary>
 /// <param name="val">A GroupRole object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The role associated with this person in the context of this group."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetRole( GroupRole val )
 {
     SetField( SchoolDTD.TEACHER_ROLE, val );
 }
Beispiel #3
0
 /// <summary>
 /// Sets the value of the <c>&lt;Role&gt;</c> element.
 /// </summary>
 /// <param name="val">A GroupRole object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The role associated with this person in the context of this group."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetRole(GroupRole val)
 {
     SetField(SchoolDTD.TEACHER_ROLE, val);
 }
Beispiel #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="workforcePersonalRefId">The ID (GUID) of a teacher, staff member, or other employee participating in a non-learner capacity within this group.</param>
 ///<param name="role">The role associated with this person in the context of this group.</param>
 ///
 public Teacher(string workforcePersonalRefId, GroupRole role) : base(SchoolDTD.TEACHER)
 {
     this.WorkforcePersonalRefId = workforcePersonalRefId;
     this.SetRole(role);
 }
Beispiel #5
0
 ///<summary>Adds the value of the <c>&lt;Teacher&gt;</c> element.</summary>
 /// <param name="WorkforcePersonalRefId">The ID (GUID) of a teacher, staff member, or other employee participating in a non-learner capacity within this group.</param>
 /// <param name="Role">The role associated with this person in the context of this group.</param>
 ///<remarks>
 /// <para>This form of <c>setTeacher</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddTeacher</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddTeacher(string WorkforcePersonalRefId, GroupRole Role)
 {
     AddChild(SchoolDTD.TEACHERLIST_TEACHER, new Teacher(WorkforcePersonalRefId, Role));
 }