Exemplo n.º 1
0
 public function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'clusterpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'clusterpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'subclusters', 'page' => 'clusterpage', 'params' => array(), 'name' => get_string('subclusters', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'clustertrackpage', 'page' => 'clustertrackpage', 'name' => get_string('tracks', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'track.gif'), array('tab_id' => 'clusteruserpage', 'page' => 'clusteruserpage', 'name' => get_string('users', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'user.gif'), array('tab_id' => 'clustercurriculumpage', 'page' => 'clustercurriculumpage', 'name' => get_string('curricula', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'curriculum.gif'), array('tab_id' => 'cluster_rolepage', 'page' => 'cluster_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag.gif'), array('tab_id' => 'delete', 'page' => 'clusterpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'));
     parent::__construct($params);
 }
Exemplo n.º 2
0
 function __construct(array $params = null)
 {
     parent::__construct($params);
     $id = $this->optional_param('id', 0, PARAM_INT);
     $track_params = $id ? array('parent' => $id) : array();
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'curriculumstudentpage', 'page' => 'curriculumstudentpage', 'name' => get_string('users', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'user'), array('tab_id' => 'curriculumclusterpage', 'page' => 'curriculumclusterpage', 'name' => get_string('clusters', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'cluster'), array('tab_id' => 'curriculumcoursepage', 'page' => 'curriculumcoursepage', 'name' => get_string('courses', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'course'), array('tab_id' => 'trackpage', 'page' => 'trackpage', 'params' => $track_params, 'name' => get_string('tracks', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'track'), array('tab_id' => 'curriculum_rolepage', 'page' => 'curriculum_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => get_string('delete', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
 }
Exemplo n.º 3
0
 public function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => 'Detail', 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => 'Edit', 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => 'Delete', 'showbutton' => true, 'image' => 'delete.gif'));
     parent::__construct($params);
 }
Exemplo n.º 4
0
 function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'cmclasspage', 'page' => 'cmclasspage', 'params' => array('action' => 'default'), 'name' => get_string('course_classes', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'class.gif'), array('tab_id' => 'elem', 'page' => get_class($this), 'params' => array('action' => 'lelem'), 'name' => get_string('completion_elements', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'grades.gif'), array('tab_id' => 'coursecurriculumpage', 'page' => 'coursecurriculumpage', 'name' => get_string('course_curricula', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'curriculum.gif'), array('tab_id' => 'crstaginstancepage', 'page' => 'crstaginstancepage', 'name' => get_string('tags', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'tag.gif'), array('tab_id' => 'course_rolepage', 'page' => 'course_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag.gif'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'));
     parent::__construct($params);
 }
 function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'curriculumstudentpage', 'page' => 'curriculumstudentpage', 'name' => get_string('users', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'user.gif'), array('tab_id' => 'curriculumclusterpage', 'page' => 'curriculumclusterpage', 'name' => get_string('clusters', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'cluster.gif'), array('tab_id' => 'curriculumcoursepage', 'page' => 'curriculumcoursepage', 'name' => get_string('courses', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'course.gif'), array('tab_id' => 'trackpage', 'page' => 'trackpage', 'name' => get_string('tracks', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'track.gif'), array('tab_id' => 'curtaginstancepage', 'page' => 'curtaginstancepage', 'name' => get_string('tags', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'tag.gif'), array('tab_id' => 'curriculum_rolepage', 'page' => 'curriculum_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag.gif'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => get_string('delete', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'));
     parent::__construct($params);
 }
 function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'usermanagementpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'usermanagementpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'studentcurriculumpage', 'page' => 'studentcurriculumpage', 'name' => get_string('curricula', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'curriculum.gif'), array('tab_id' => 'userclusterpage', 'page' => 'userclusterpage', 'name' => get_string('clusters', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'cluster.gif'), array('tab_id' => 'usertrackpage', 'page' => 'usertrackpage', 'name' => get_string('tracks', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'track.gif'), array('tab_id' => 'user_rolepage', 'page' => 'user_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag.gif'), array('tab_id' => 'delete', 'page' => 'usermanagementpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'), array('tab_id' => 'report', 'page' => 'linkpage', 'params' => array('linkurl' => 'blocks/php_report/render_report_page.php', 'linkparams' => 'report,userid', 'report' => 'individual_user', 'userid' => '=id'), 'name' => get_string('report', 'block_curr_admin'), 'showbutton' => true, 'image' => 'report.gif'));
     parent::__construct($params);
 }
Exemplo n.º 7
0
 public function __construct(array $params = null)
 {
     // Check the course certificate global settings value
     $showcoursecerttab = isset(elis::$config->local_elisprogram->disablecoursecertificates);
     $showcoursecerttab = $showcoursecerttab && empty(elis::$config->local_elisprogram->disablecoursecertificates);
     $numclasses = 1;
     if (($id = $this->optional_param('id', 0, PARAM_INT)) > 0 && !$this->_has_capability('local/elisprogram:class_create', $id)) {
         $parentclusterid = $this->optional_param('parent_clusterid', 0, PARAM_INT);
         $numclasses = pmclass_count_records('', '', $id, false, pmclasspage::get_contexts('local/elisprogram:class_view'), $parentclusterid);
     }
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'pmclasspage', 'page' => 'pmclasspage', 'params' => array('action' => 'default'), 'name' => get_string('course_classes', 'local_elisprogram'), 'showtab' => $numclasses > 0, 'showbutton' => $numclasses > 0, 'image' => 'class'), array('tab_id' => 'elem', 'page' => get_class($this), 'params' => array('action' => 'lelem'), 'name' => get_string('completion_elements', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'grades'), array('tab_id' => 'coursecurriculumpage', 'page' => 'coursecurriculumpage', 'name' => get_string('course_curricula', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'curriculum'), array('tab_id' => 'course_rolepage', 'page' => 'course_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag'), array('tab_id' => 'course_enginepage', 'page' => 'course_enginepage', 'name' => get_string('results_engine', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'calculator'), array('tab_id' => 'course_enginestatuspage', 'page' => 'course_enginestatuspage', 'name' => get_string('status_report', 'local_elisprogram'), 'showtab' => false, 'showbutton' => false), array('tab_id' => 'course_certificatepage', 'page' => 'course_certificatepage', 'name' => get_string('certificate_settings', 'local_elisprogram'), 'showtab' => $showcoursecerttab, 'showbutton' => $showcoursecerttab, 'image' => 'certificate'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
     parent::__construct($params);
 }
Exemplo n.º 8
0
 /**
  * Constructor
  * @param array $params An array of parameters for the page.
  */
 public function __construct(array $params = null)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'usersetpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'usersetpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'usersetsubusersetpage', 'page' => 'usersetsubusersetpage', 'params' => array(), 'name' => get_string('usersubsets', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'cluster'), array('tab_id' => 'clustertrackpage', 'page' => 'clustertrackpage', 'name' => get_string('tracks', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'track'), array('tab_id' => 'clusteruserpage', 'page' => 'clusteruserpage', 'name' => get_string('users', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'user'), array('tab_id' => 'clustercurriculumpage', 'page' => 'clustercurriculumpage', 'name' => get_string('curricula', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'curriculum'), array('tab_id' => 'cluster_rolepage', 'page' => 'cluster_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag'), array('tab_id' => 'delete', 'page' => 'usersetpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
     parent::__construct($params);
 }
Exemplo n.º 9
0
 public function __construct(array $params = null)
 {
     global $DB, $CFG;
     $reports_installed = $DB->record_exists('config_plugins', array('plugin' => 'local_elisreports', 'name' => 'version'));
     if ($reports_installed && file_exists($CFG->dirroot . '/local/elisreports/php_report_base.php')) {
         require_once $CFG->dirroot . '/local/elisreports/php_report_base.php';
     }
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'studentpage', 'page' => 'studentpage', 'name' => get_string('enrolments', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'user'), array('tab_id' => 'waitlistpage', 'page' => 'waitlistpage', 'name' => get_string('waiting', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'waiting'), array('tab_id' => 'instructorpage', 'page' => 'instructorpage', 'name' => get_string('instructors', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'instructor'), array('tab_id' => 'class_rolepage', 'page' => 'class_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag'), array('tab_id' => 'class_enginepage', 'page' => 'class_enginepage', 'name' => get_string('results_engine', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'calculator'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
     if ($reports_installed) {
         $this->tabs[] = array('tab_id' => 'class_reportlinkspage', 'page' => 'class_reportlinkspage', '', 'name' => get_string('classreportlinks', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'report');
     }
     parent::__construct($params);
 }
 public function __construct(array $params = null)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'usersetclassificationpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'usersetclassificationpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'delete', 'page' => 'usersetclassificationpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
     parent::__construct($params);
 }
Exemplo n.º 11
0
 public function __construct(array $params = null)
 {
     parent::__construct($params);
     $curid = $this->optional_param('parent', 0, PARAM_INT);
     // TBD: get_cm_id(empty($action));
     $curid_param = $curid ? array('parent' => $curid) : array();
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'trackpage', 'params' => array('action' => 'view') + $curid_param, 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'trackpage', 'params' => array('action' => 'edit') + $curid_param, 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'trackclusterpage', 'page' => 'trackclusterpage', 'name' => get_string('clusters', 'local_elisprogram'), 'params' => $curid_param, 'showtab' => true, 'showbutton' => true, 'image' => 'cluster'), array('tab_id' => 'trackuserpage', 'page' => 'trackuserpage', 'params' => $curid_param, 'name' => get_string('users', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'user'), array('tab_id' => 'trackassignmentpage', 'page' => 'trackassignmentpage', 'params' => $curid_param, 'name' => get_string('track_classes', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'class'), array('tab_id' => 'track_rolepage', 'page' => 'track_rolepage', 'params' => $curid_param, 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag'), array('tab_id' => 'delete', 'page' => 'trackpage', 'params' => array('action' => 'delete') + $curid_param, 'name' => get_string('delete', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
 }
 public function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'clusterclassificationpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'clusterclassificationpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'delete', 'page' => 'clusterclassificationpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'));
     parent::__construct($params);
 }
Exemplo n.º 13
0
 function __construct($params = false)
 {
     global $CFG;
     $reports_installed = record_exists('block', 'name', 'php_report');
     if ($reports_installed) {
         require_once $CFG->dirroot . '/blocks/php_report/php_report_base.php';
     }
     $this->tabs = array(array('tab_id' => 'view', 'page' => get_class($this), 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => get_class($this), 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'studentpage', 'page' => 'studentpage', 'name' => get_string('enrolments', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'user.gif'), array('tab_id' => 'waitlistpage', 'page' => 'waitlistpage', 'name' => get_string('waiting', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'waiting.png'), array('tab_id' => 'instructorpage', 'page' => 'instructorpage', 'name' => get_string('instructors', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'instructor.gif'), array('tab_id' => 'clstaginstancepage', 'page' => 'clstaginstancepage', 'name' => get_string('tags', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'tag.gif'), array('tab_id' => 'class_rolepage', 'page' => 'class_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag.gif'), array('tab_id' => 'delete', 'page' => get_class($this), 'params' => array('action' => 'delete'), 'name' => get_string('delete_label', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'));
     if ($reports_installed) {
         $this->tabs[] = array('tab_id' => 'class_reportlinkspage', 'page' => 'class_reportlinkspage', 'params' => array('currentitypath' => 'rept/' . php_report::CATEGORY_CLASS . '/'), 'name' => get_string('classreportlinks', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'report.gif');
     }
     parent::__construct($params);
 }
Exemplo n.º 14
0
 public function __construct($params = false)
 {
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'trackpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'block_curr_admin'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'trackpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit.gif'), array('tab_id' => 'trackclusterpage', 'page' => 'trackclusterpage', 'name' => get_string('clusters', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'cluster.gif'), array('tab_id' => 'trackuserpage', 'page' => 'trackuserpage', 'name' => get_string('users', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'user.gif'), array('tab_id' => 'trackassignmentpage', 'page' => 'trackassignmentpage', 'name' => get_string('track_classes', 'block_curr_admin'), 'showtab' => true, 'showbutton' => true, 'image' => 'class.gif'), array('tab_id' => 'track_rolepage', 'page' => 'track_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag.gif'), array('tab_id' => 'delete', 'page' => 'trackpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete', 'block_curr_admin'), 'showbutton' => true, 'image' => 'delete.gif'));
     parent::__construct($params);
 }
Exemplo n.º 15
0
 public function __construct(array $params = null)
 {
     global $CFG;
     //tab for the Individual User report
     //permissions checking happens in the link page
     if (file_exists($CFG->dirroot . '/local/elisreports/render_report_page.php')) {
         $report_tab = array('tab_id' => 'report', 'page' => 'linkpage', 'params' => array('linkurl' => 'local/elisreports/render_report_page.php', 'linkparams' => 'report,userid', 'report' => 'individual_user', 'userid' => '=id'), 'name' => get_string('report', 'local_elisprogram'), 'showbutton' => true, 'image' => 'report');
     }
     $this->tabs = array(array('tab_id' => 'view', 'page' => 'userpage', 'params' => array('action' => 'view'), 'name' => get_string('detail', 'local_elisprogram'), 'showtab' => true), array('tab_id' => 'edit', 'page' => 'userpage', 'params' => array('action' => 'edit'), 'name' => get_string('edit', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'edit'), array('tab_id' => 'studentcurriculumpage', 'page' => 'studentcurriculumpage', 'name' => get_string('curricula', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'curriculum'), array('tab_id' => 'userclusterpage', 'page' => 'userclusterpage', 'name' => get_string('clusters', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'cluster'), array('tab_id' => 'usertrackpage', 'page' => 'usertrackpage', 'name' => get_string('tracks', 'local_elisprogram'), 'showtab' => true, 'showbutton' => true, 'image' => 'track'), array('tab_id' => 'user_rolepage', 'page' => 'user_rolepage', 'name' => get_string('roles', 'role'), 'showtab' => true, 'showbutton' => false, 'image' => 'tag'), array('tab_id' => 'delete', 'page' => 'userpage', 'params' => array('action' => 'delete'), 'name' => get_string('delete', 'local_elisprogram'), 'showbutton' => true, 'image' => 'delete'));
     //tab for the Individual User report
     //permissions checking happens in the link page
     if (file_exists($CFG->dirroot . '/local/elisreports/render_report_page.php')) {
         //script for rendering report pages exists in report block, so reports
         //are at least installed
         $report_tab = array('tab_id' => 'report', 'page' => 'induserlinkpage', 'params' => array('linkurl' => 'local/elisreports/render_report_page.php', 'linkparams' => 'report,userid', 'report' => 'individual_user', 'userid' => '=id'), 'name' => get_string('report', 'local_elisprogram'), 'showbutton' => true, 'image' => 'report');
         $this->tabs[] = $report_tab;
     }
     parent::__construct($params);
 }