| 1 |
efrain |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Cocoon Form Builder integration for Moodle
|
|
|
5 |
*
|
|
|
6 |
* @package cocoon_form_builder
|
|
|
7 |
* @copyright ©2021 Cocoon, XTRA Enterprises Ltd. createdbycocoon.com
|
|
|
8 |
* @author Cocoon
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
defined('MOODLE_INTERNAL') || die();
|
|
|
12 |
|
|
|
13 |
require_once($CFG->dirroot. '/course/renderer.php');
|
|
|
14 |
include_once($CFG->dirroot . '/course/lib.php');
|
|
|
15 |
|
|
|
16 |
class ccnConstruct {
|
|
|
17 |
|
|
|
18 |
public function ccnGetForms() {
|
|
|
19 |
global $CFG, $COURSE, $USER, $DB, $SESSION, $SITE, $PAGE, $OUTPUT;
|
|
|
20 |
|
|
|
21 |
$ccnForms = $DB->get_records('cocoon_form_builder_forms', array(), $sort='', $fields='*', $limitfrom=0, $limitnum=$maxNum);
|
|
|
22 |
//print_object($ccnForms);
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
}
|