Page helper.  
 More...
|  | 
| static | setup_for_competency ($pagecontextid, moodle_url $url, $framework, $competency=null, $parent=null) | 
|  | Set-up a competency page. 
 | 
|  | 
| static | setup_for_course (moodle_url $url, $course, $subtitle='') | 
|  | Set-up a course page. 
 | 
|  | 
| static | setup_for_framework ($id, $pagecontextid, $framework=null, $returntype=null) | 
|  | Set-up a framework page. 
 | 
|  | 
| static | setup_for_plan ($userid, moodle_url $url, $plan=null, $subtitle='', $returntype=null) | 
|  | Set-up a plan page. 
 | 
|  | 
| static | setup_for_template ($pagecontextid, moodle_url $url, $template=null, $subtitle='', $returntype=null) | 
|  | Set-up a template page. 
 | 
|  | 
| static | setup_for_user_evidence ($userid, moodle_url $url, $evidence=null, $subtitle='', $returntype=null) | 
|  | Set-up a user evidence page. 
 | 
|  | 
Page helper. 
- Copyright
- 2015 Frédéric Massart - FMCorz.net 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ setup_for_competency()
  
  | 
        
          | static tool_lp\page_helper::setup_for_competency | ( |  | $pagecontextid, |  
          |  |  | moodle_url | $url, |  
          |  |  |  | $framework, |  
          |  |  |  | $competency = null, |  
          |  |  |  | $parent = null ) |  | static | 
 
Set-up a competency page. 
Example: list($title, $subtitle) = page_helper\setup_for_competency($pagecontextid, $url, $competency, $pagetitle); echo $OUTPUT->heading($title); echo $OUTPUT->heading($subtitle, 3);
- Parameters
- 
  
  
- Return values
- 
  
    | array | With the following: 
Page titlePage sub titleReturn URL (main competencies page)  |  
 
- Exceptions
- 
  
  
 
 
◆ setup_for_course()
  
  | 
        
          | static tool_lp\page_helper::setup_for_course | ( | moodle_url | $url, |  
          |  |  |  | $course, |  
          |  |  |  | $subtitle = '' ) |  | static | 
 
Set-up a course page. 
Example: list($title, $subtitle) = page_helper\setup_for_course($pagecontextid, $url, $course, $pagetitle); echo $OUTPUT->heading($title); echo $OUTPUT->heading($subtitle, 3);
- Parameters
- 
  
    | moodle_url | $url | The current page. |  | stdClass | $course | The course. |  | string | $subtitle | The title of the subpage, if any. |  
 
- Return values
- 
  
    | array | With the following: 
Page titlePage sub titleReturn URL (course competencies page)  |  
 
 
 
◆ setup_for_framework()
  
  | 
        
          | static tool_lp\page_helper::setup_for_framework | ( |  | $id, |  
          |  |  |  | $pagecontextid, |  
          |  |  |  | $framework = null, |  
          |  |  |  | $returntype = null ) |  | static | 
 
Set-up a framework page. 
Example: list($pagetitle, $pagesubtitle, $url, $frameworksurl) = page_helper\setup_for_framework($id, $pagecontextid); echo $OUTPUT->heading($pagetitle); echo $OUTPUT->heading($pagesubtitle, 3);
- Parameters
- 
  
  
- Return values
- 
  
    | array | With the following: 
Page titlePage sub titlePage URLPage framework URL  |  
 
 
 
◆ setup_for_plan()
  
  | 
        
          | static tool_lp\page_helper::setup_for_plan | ( |  | $userid, |  
          |  |  | moodle_url | $url, |  
          |  |  |  | $plan = null, |  
          |  |  |  | $subtitle = '', |  
          |  |  |  | $returntype = null ) |  | static | 
 
Set-up a plan page. 
Example: list($title, $subtitle) = page_helper\setup_for_plan($url, $template, $pagetitle); echo $OUTPUT->heading($title); echo $OUTPUT->heading($subtitle, 3);
- Parameters
- 
  
    | int | $userid | The user ID. |  | moodle_url | $url | The current page. |  | core_competency\plan | $plan | The plan, if any. |  | string | $subtitle | The title of the subpage, if any. |  | string | $returntype | The desired return page. |  
 
- Return values
- 
  
    | array | With the following: 
Page titlePage sub titleReturn URL (main plan page)  |  
 
 
 
◆ setup_for_template()
  
  | 
        
          | static tool_lp\page_helper::setup_for_template | ( |  | $pagecontextid, |  
          |  |  | moodle_url | $url, |  
          |  |  |  | $template = null, |  
          |  |  |  | $subtitle = '', |  
          |  |  |  | $returntype = null ) |  | static | 
 
Set-up a template page. 
Example: list($title, $subtitle) = page_helper\setup_for_template($pagecontextid, $url, $template, $pagetitle); echo $OUTPUT->heading($title); echo $OUTPUT->heading($subtitle, 3);
- Parameters
- 
  
    | int | $pagecontextid | The page context ID. |  | moodle_url | $url | The current page. |  | core_competency\template | $template | The template, if any. |  | string | $subtitle | The title of the subpage, if any. |  | string | $returntype | The desired return page. |  
 
- Return values
- 
  
    | array | With the following: 
Page titlePage sub titleReturn URL  |  
 
 
 
◆ setup_for_user_evidence()
  
  | 
        
          | static tool_lp\page_helper::setup_for_user_evidence | ( |  | $userid, |  
          |  |  | moodle_url | $url, |  
          |  |  |  | $evidence = null, |  
          |  |  |  | $subtitle = '', |  
          |  |  |  | $returntype = null ) |  | static | 
 
Set-up a user evidence page. 
Example: list($title, $subtitle) = page_helper\setup_for_user_evidence($url, $template, $pagetitle); echo $OUTPUT->heading($title); echo $OUTPUT->heading($subtitle, 3);
- Parameters
- 
  
    | int | $userid | The user ID. |  | moodle_url | $url | The current page. |  | core_competency\user_evidence | $evidence | The user evidence, if any. |  | string | $subtitle | The title of the subpage, if any. |  | string | $returntype | The desired return page. |  
 
- Return values
- 
  
    | array | With the following: 
Page titlePage sub titleReturn URL (main plan page)  |  
 
 
 
The documentation for this class was generated from the following file: