public function __construct($mvc_name)
 {
     parent::__construct($mvc_name);
     require_once _base_ . '/lib/lib.json.php';
     $this->json = new Services_JSON();
     $this->model = new EnrollrulesAlms();
 }
 public function init()
 {
     parent::init();
     $this->json = new Services_JSON();
     $this->model = new LocationAlms();
     $this->perm = array('view' => checkPerm('view', true, 'location', 'lms'), 'mod' => checkPerm('mod', true, 'location', 'lms'));
 }
 public function init()
 {
     parent::init();
     require_once _base_ . '/lib/lib.json.php';
     $this->json = new Services_JSON();
     $this->model = new TimeperiodsAlms();
     $this->permissions = array('view' => checkPerm('view', true, 'timeperiods', 'lms'), 'add' => checkPerm('mod', true, 'timeperiods', 'lms'), 'mod' => checkPerm('mod', true, 'timeperiods', 'lms'), 'del' => checkPerm('mod', true, 'timeperiods', 'lms'));
 }
 public function init()
 {
     parent::init();
     require_once _base_ . '/lib/lib.json.php';
     $this->json = new Services_JSON();
     $this->model = new QuestcategoryAlms();
     $this->permissions = array('view' => checkPerm('view', true, 'questcategory', 'lms'), 'add' => true, 'mod' => checkPerm('mod', true, 'questcategory', 'lms'), 'del' => true);
 }
 public function init()
 {
     parent::init();
     require_once _base_ . '/lib/lib.json.php';
     $this->model = new CommunicationAlms();
     $this->json = new Services_JSON();
     $this->permissions = array('view' => checkPerm('view', true, 'communication', 'lms'), 'add' => checkPerm('mod', true, 'communication', 'lms'), 'mod' => checkPerm('mod', true, 'communication', 'lms'), 'del' => checkPerm('mod', true, 'communication', 'lms'), 'subscribe' => checkPerm('subscribe', true, 'course', 'lms'), 'add_category' => checkPerm('mod', true, 'communication', 'lms'), 'mod_category' => checkPerm('mod', true, 'communication', 'lms'), 'del_category' => checkPerm('mod', true, 'communication', 'lms'));
 }
 public function init()
 {
     parent::init();
     require_once _base_ . '/lib/lib.json.php';
     $this->json = new Services_JSON();
     $this->acl_man =& Docebo::user()->getAclManager();
     $this->model = new LabelAlms();
     $this->permissions = array('view' => checkPerm('view', true, 'label', 'lms'), 'add' => true, 'mod' => true, 'del' => true);
 }
 public function init()
 {
     parent::init();
     require_once _base_ . '/lib/lib.json.php';
     //Util::get_css();
     $this->model = new KbAlms();
     $this->json = new Services_JSON();
     $this->permissions = array('view' => checkPerm('view', true, 'kb'), 'add' => checkPerm('mod', true, 'kb'), 'mod' => checkPerm('mod', true, 'kb'), 'del' => checkPerm('mod', true, 'kb'));
 }
 public function init()
 {
     parent::init();
     require_once _base_ . '/lib/lib.json.php';
     $this->json = new Services_JSON();
     $this->acl_man =& Docebo::user()->getAclManager();
     $this->model = new CourseAlms();
     $this->base_link_course = 'alms/course';
     $this->base_link_classroom = 'alms/classroom';
     $this->base_link_edition = 'alms/edition';
     $this->base_link_subscription = 'alms/subscription';
     $this->base_link_competence = 'adm/competences';
     $this->lo_types_cache = false;
     $this->permissions = array('view' => checkPerm('view', true, 'course', 'lms'), 'add' => checkPerm('add', true, 'course', 'lms'), 'mod' => checkPerm('mod', true, 'course', 'lms'), 'del' => checkPerm('del', true, 'course', 'lms'), 'moderate' => checkPerm('moderate', true, 'course', 'lms'), 'subscribe' => checkPerm('subscribe', true, 'course', 'lms'), 'add_category' => checkPerm('add', true, 'coursecategory', 'lms'), 'mod_category' => checkPerm('mod', true, 'coursecategory', 'lms'), 'del_category' => checkPerm('del', true, 'coursecategory', 'lms'));
 }
 public function init()
 {
     AlmsController::init();
     require_once _base_ . '/lib/lib.json.php';
     $this->json = new Services_JSON();
     $this->acl_man =& Docebo::user()->getAclManager();
     $this->model = new CourseAlms();
     $this->base_link_course = 'lms/pcourse';
     $this->base_link_classroom = 'lms/pclassroom';
     $this->base_link_edition = 'lms/pedition';
     $this->base_link_subscription = 'lms/psubscription';
     $this->base_link_competence = 'lms/pcompetences';
     $this->permissions = array('view' => checkPerm('view', true, 'pcourse'), 'add' => checkPerm('add', true, 'pcourse'), 'mod' => checkPerm('mod', true, 'pcourse'), 'del' => checkPerm('del', true, 'pcourse'), 'moderate' => checkPerm('moderate', true, 'pcourse'), 'subscribe' => checkPerm('subscribe', true, 'pcourse'), 'add_category' => false, 'mod_category' => false, 'del_category' => false);
     $this->_mvc_name = 'course';
 }