Вход Регистрация
Файл: base-sys/base/components/user_view_section.php
Строк: 35
<?php

class BASE_CMP_UserViewSection extends PEEP_Component
{
    public function 
__construct( $section, $sectionQuestions, $data, $labels, $template = 'table', $hideSection = false, $additionalParams = array() )
    {
        
parent::__construct();

        
$this->assign('sectionName', $section);
        
$this->assign('questions', $sectionQuestions);
        
$this->assign('questionsData', $data);
        
$this->assign('labels', $labels);
        
$this->assign('display', !$hideSection);

        switch ( 
$template )
        {
            
default :
                    
$this->setTemplate(PEEP::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'user_view_section_tabs.html' );
                break;

            case 
'table':
                    
$this->setTemplate(PEEP::getPluginManager()->getPlugin('base')->getCmpViewDir() . 'user_view_section_table.html' );
        }
    }
}
Онлайн: 0
Реклама