コード例 #1
0
ファイル: group_users_widget.php プロジェクト: vazahat/dudex
 public function __construct(BASE_CLASS_WidgetParameter $params)
 {
     parent::__construct();
     $groupId = (int) $params->additionalParamList['entityId'];
     $count = (int) $params->customParamList['count'];
     $size = $params->customParamList['size'];
     $language = OW::getLanguage();
     $list = $this->getList($groupId, $count);
     $users = new UCAROUSEL_CMP_Users($list, $size, $params->customParamList['infoLayout']);
     if (!empty($users)) {
         $users->initCarousel(array('autoplay' => $params->customParamList['autoplay'], 'speed' => $params->customParamList['speed'], 'dragging' => $params->customParamList['dragging'], 'shape' => $params->customParamList['shape']));
     }
     $this->addComponent('users', $users);
 }
コード例 #2
0
ファイル: users_widget.php プロジェクト: vazahat/dudex
 public function __construct(BASE_CLASS_WidgetParameter $params)
 {
     parent::__construct();
     $count = (int) $params->customParamList['count'];
     $size = $params->customParamList['size'];
     $language = OW::getLanguage();
     $opts = array();
     if ($params->customParamList['list'] == "by_role") {
         $opts = $params->customParamList['roles'];
     }
     if ($params->customParamList['list'] == "by_account_type") {
         $opts = $params->customParamList['account_types'];
     }
     $list = $this->getList($params->customParamList['list'], $count, true, $opts);
     $users = new UCAROUSEL_CMP_Users($list, $size, $params->customParamList['infoLayout']);
     if (!empty($list)) {
         $users->initCarousel(array('autoplay' => $params->customParamList['autoplay'], 'speed' => $params->customParamList['speed'], 'dragging' => $params->customParamList['dragging'], 'shape' => $params->customParamList['shape']));
     }
     $this->addComponent('users', $users);
 }