コード例 #1
0
ファイル: page_updated.php プロジェクト: evltuma/moodle
 /**
  * Create instance of event.
  *
  * @param \lesson_page $lessonpage
  * @param \context_module $context
  * @return page_updated
  */
 public static function create_from_lesson_page(\lesson_page $lessonpage, \context_module $context)
 {
     $data = array('context' => $context, 'objectid' => $lessonpage->properties()->id, 'other' => array('pagetype' => $lessonpage->get_typestring()));
     return self::create($data);
 }