/** * This implies the skill gap analysis :| well, a first implementation will be done based on * required over acquired skill and proposing courses that will give, the required competences. * If this implementation will require too much time i will wait for more information and pospone the implementation */ public function suggested() { $competence_needed = Docebo::user()->requiredCompetences(); $model = new ClassroomLms(); $courselist = $model->findAll(array('cu.iduser = :id_user', 'comp.id_competence IN (:competence_list)'), array(':id_user' => Docebo::user()->getId(), ':competence_list' => $competence_needed), array('LEFT JOIN %lms_competence AS comp ON ( .... ) ')); $this->render('courselist', array('path_course' => $this->path_course, 'courselist' => $courselist, 'dm' => new DateManager())); }
$this->widget('lms_block', array('zone' => 'right', 'link' => 'elearning/show', 'block_list' => $block_list)); ?> </div> <div id="yui-main"> <div class="yui-b"> <div class="middlearea_container"> <?php /* $this->widget('lms_tab', array( 'active' => 'classroom' )); */ $w = $this->widget('lms_tab', array('active' => 'classroom', 'close' => false)); // draw search $_model = new ClassroomLms(); $_auxiliary = Form::getInputDropdown('', 'course_search_filter_year', 'filter_year', $_model->getFilterYears(Docebo::user()->getIdst()), 0, ''); $this->widget('tablefilter', array('id' => 'course_search', 'filter_text' => "", 'auxiliary_filter' => Lang::t('_SEARCH', 'standard') . ": " . $_auxiliary, 'js_callback_set' => 'course_search_callback_set', 'js_callback_reset' => 'course_search_callback_reset', 'css_class' => 'tabs_filter')); $w->endWidget(); ?> </div> </div> </div> <div class="nofloat"></div> </div> <?php $prop = array('id' => 'self_unsubscribe_dialog', 'dynamicContent' => true, 'ajaxUrl' => 'this.href', 'dynamicAjaxUrl' => true, 'callEvents' => array()); $this->widget('dialog', $prop); ?>