Menu

#8 Разработать класс модели MoodleAssignment

Started
nobody
None
Medium
Review
2014-12-02
2014-11-18
Anonymous
No

Originally created by: kolgen...@gmail.com
Originally owned by: AlexeySt...@gmail.com

Разработать класс модели MoodleAssignment в соответствии с функциями Moodle Web services API.

Discussion

  • Anonymous

    Anonymous - 2014-11-21

    Originally posted by: MEXAHIK3...@gmail.com

    Геннадий Павлович, а класс модели MoodleAssignment разрабатывать по методу mod_assign_get_assignments ??

     
  • Anonymous

    Anonymous - 2014-11-24

    Originally posted by: kolgen...@gmail.com

    ПРЕДЛАГАЮ РАЗРАБОТКУ НИЖЕ ПРИВЕДЕННЫХ КЛАССОВ ПОРУЧИТЬ АЛЕКСЕЮ:

    Да. Только эта функция возвращает и курсы и их задания, поэтому переменными класса MoodleAssignment будут только переменные:
    id int   //assignment id
    cmid int   //course module id
    course int   //course id
    name string   //assignment name
    nosubmissions int   //no submissions
    submissiondrafts int   //submissions drafts
    sendnotifications int   //send notifications
    sendlatenotifications int   //send notifications
    sendstudentnotifications int   //send student notifications (default)
    duedate int   //assignment due date
    allowsubmissionsfromdate int   //allow submissions from date
    grade int   //grade type
    timemodified int   //last time assignment was modified
    completionsubmit int   //if enabled, set activity as complete following submission
    cutoffdate int   //date after which submission is not accepted without an extension
    teamsubmission int   //if enabled, students submit as a team
    requireallteammemberssubmit int   //if enabled, all team members must submit
    teamsubmissiongroupingid int   //the grouping id for the team submission groups
    blindmarking int   //if enabled, hide identities until reveal identities actioned
    revealidentities int   //show identities for a blind marking assignment
    attemptreopenmethod string   //method used to control opening new attempts
    maxattempts int   //maximum number of attempts allowed
    markingworkflow int   //enable marking workflow
    markingallocation int   //enable marking allocation
    requiresubmissionstatement int

    Кроме того в качестве переменной будет коллекция:
    List<MoodleAssignmentConfig> assignmentConfigs
    и нужно создать класс MoodleAssignmentConfig
    со свойствами:
    id int   //assign_plugin_config id
    assignment int   //assignment id
    plugin string   //plugin
    subtype string   //subtype
    name string   //name
    value string   //value

    Кроме того в этой функции есть список предупреждений, они не являются свойствами класса MoodleAssignment, но нужно создать класс сущности MoodleWarning
    со свойствами:
    item string  Optional //item can be 'course' (errorcode 1 or 2) or 'module' (errorcode 1)
    itemid int  Optional //When item is a course then itemid is a course id. When the item is a module then itemid is a module id
    warningcode string   //errorcode can be 1 (no access rights) or 2 (not enrolled or no permissions)
    message string   //untranslated english message to explain the warning

    Owner: AlexeySt...@gmail.com
    Cc: MEXAHIK3...@gmail.com
    Status: Started

     
  • Anonymous

    Anonymous - 2014-12-02

    Originally posted by: kolgen...@gmail.com

    Добавьте Jacadoc комментарии к MoodleAssignmentConfig см. как в MoodleUser. В теге @author напишите своё имя и фамилию. И пишите класс MoodleAssignment.

    Cc: -MEXAHIK3...@gmail.com

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.