コード例 #1
0
ファイル: groups_bridge.php プロジェクト: vazahat/dudex
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return UCAROUSEL_CLASS_GroupsBridge
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: activate.php プロジェクト: vazahat/dudex
<?php

/**
 * Copyright (c) 2012, Sergey Kambalin
 * All rights reserved.
 * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/
 * and is licensed under Oxwall Store Commercial License.
 * Full text of this license can be found at http://www.oxwall.org/store/oscl
 */
require_once dirname(__FILE__) . DS . 'classes' . DS . 'groups_bridge.php';
$widgetService = BOL_ComponentAdminService::getInstance();
$widget = $widgetService->addWidget('UCAROUSEL_CMP_UsersWidget', false);
$widgetPlace = $widgetService->addWidgetToPlace($widget, BOL_ComponentService::PLACE_INDEX);
$widgetService->addWidgetToPosition($widgetPlace, BOL_ComponentService::SECTION_TOP, 0);
$widgetService->addWidgetToPlace($widget, BOL_ComponentService::PLACE_DASHBOARD);
UCAROUSEL_CLASS_GroupsBridge::getInstance()->addWidget('UCAROUSEL_CMP_GroupUsersWidget');
コード例 #3
0
ファイル: group_users_widget.php プロジェクト: vazahat/dudex
 public function getList($groupId, $count, $withPhoto = true)
 {
     return UCAROUSEL_CLASS_GroupsBridge::getInstance()->findUsers($groupId, $count, $withPhoto);
 }
コード例 #4
0
ファイル: init.php プロジェクト: vazahat/dudex
<?php

/**
 * Copyright (c) 2012, Sergey Kambalin
 * All rights reserved.
 * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/
 * and is licensed under Oxwall Store Commercial License.
 * Full text of this license can be found at http://www.oxwall.org/store/oscl
 */
UCAROUSEL_CLASS_GroupsBridge::getInstance()->init();