Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41185

Create page viewed event for course

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • run phpunit tests

      part one

      1. You will need to create a parent role to navigate to this section.
      2. Follow the instructions here: http://docs.moodle.org/26/en/Parent_role.
      3. Go to [Administration► Profile settings for xxxxxx ► Activity reports ► Grade].
      4. Have a look at the page and then check out the logs.
      5. Check that the url in the log navigates back to the page that you were at before.

      part two

      1. Go to a course and edit the settings to show one section per page [Course format][Course layout].
      2. Go from section to section.
      3. Check out the logs and ensure that there is an entry for viewing the course page.

      part three

      1. Go to the home page.
      2. Click Turn editing on. Hopefully there is a section at the top of the page that will let you add activities.
      3. Add an activity.
      4. Check out the logs again and ensure that a log was recorded.
      Show
      run phpunit tests part one You will need to create a parent role to navigate to this section. Follow the instructions here: http://docs.moodle.org/26/en/Parent_role . Go to [Administration► Profile settings for xxxxxx ► Activity reports ► Grade] . Have a look at the page and then check out the logs. Check that the url in the log navigates back to the page that you were at before. part two Go to a course and edit the settings to show one section per page [Course format] [Course layout] . Go from section to section. Check out the logs and ensure that there is an entry for viewing the course page. part three Go to the home page. Click Turn editing on. Hopefully there is a section at the top of the page that will let you add activities. Add an activity. Check out the logs again and ensure that a log was recorded.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w17_MDL-41185_m27_courselog
    • Story Points:
      13
    • Sprint:
      BACKEND Sprint 12

      Description

      /course/user.php:108: add_to_log($course->id, "course", "user report", "user.php?id=$course->id&user=$user->id&mode=$mode", "$user->id");
      /course/view.php:117: add_to_log($course->id, 'course', $loglabel, "view.php?". $logparam, $infoid);
      /index.php:79: add_to_log(SITEID, 'course', 'view', 'view.php?id='.SITEID, SITEID);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              rajeshtaneja Rajesh Taneja
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Marina Glancy
              Tester:
              Marina Glancy
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14