コード例 #1
0
ファイル: helper.php プロジェクト: dg711/moodle
 /**
  * Get the specified tour.
  *
  * @param   int         $tourid     The tour that the step belongs to.
  * @return  stdClass
  */
 public static function get_tour($tourid)
 {
     return tour::instance($tourid);
 }
コード例 #2
0
ファイル: step.php プロジェクト: dg711/moodle
 /**
  * Get the Tour instance that this step belongs to.
  *
  * @return  tour
  */
 public function get_tour()
 {
     if ($this->tour === null) {
         $this->tour = tour::instance($this->tourid);
     }
     return $this->tour;
 }