/** * 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); }
/** * 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; }