| @@ 2610-2620 (lines=11) @@ | ||
| 2607 | * Gets the learnpath session id |
|
| 2608 | * @return int |
|
| 2609 | */ |
|
| 2610 | public function get_lp_session_id() |
|
| 2611 | { |
|
| 2612 | if ($this->debug > 0) { |
|
| 2613 | error_log('New LP - In learnpath::get_lp_session_id()', 0); |
|
| 2614 | } |
|
| 2615 | if (!empty ($this->lp_session_id)) { |
|
| 2616 | return (int) $this->lp_session_id; |
|
| 2617 | } else { |
|
| 2618 | return 0; |
|
| 2619 | } |
|
| 2620 | } |
|
| 2621 | ||
| 2622 | /** |
|
| 2623 | * Gets the learnpath image |
|
| @@ 3252-3262 (lines=11) @@ | ||
| 3249 | * Gets the learnpath name/title |
|
| 3250 | * @return string Learnpath name/title |
|
| 3251 | */ |
|
| 3252 | public function get_name() |
|
| 3253 | { |
|
| 3254 | if ($this->debug > 0) { |
|
| 3255 | error_log('New LP - In learnpath::get_name()', 0); |
|
| 3256 | } |
|
| 3257 | if (!empty ($this->name)) { |
|
| 3258 | return $this->name; |
|
| 3259 | } else { |
|
| 3260 | return 'N/A'; |
|
| 3261 | } |
|
| 3262 | } |
|
| 3263 | ||
| 3264 | /** |
|
| 3265 | * Gets a link to the resource from the present location, depending on item ID. |
|
| @@ 3660-3670 (lines=11) @@ | ||
| 3657 | * Gets the user ID |
|
| 3658 | * @return integer User ID |
|
| 3659 | */ |
|
| 3660 | public function get_user_id() |
|
| 3661 | { |
|
| 3662 | if ($this->debug > 0) { |
|
| 3663 | error_log('New LP - In learnpath::get_user_id()', 0); |
|
| 3664 | } |
|
| 3665 | if (!empty ($this->user_id)) { |
|
| 3666 | return $this->user_id; |
|
| 3667 | } else { |
|
| 3668 | return false; |
|
| 3669 | } |
|
| 3670 | } |
|
| 3671 | ||
| 3672 | /** |
|
| 3673 | * Checks if any of the items has an audio element attached |
|