當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Network::get_network_statistics方法代碼示例

本文整理匯總了PHP中Network::get_network_statistics方法的典型用法代碼示例。如果您正苦於以下問題:PHP Network::get_network_statistics方法的具體用法?PHP Network::get_network_statistics怎麽用?PHP Network::get_network_statistics使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Network的用法示例。


在下文中一共展示了Network::get_network_statistics方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: render

 function render()
 {
     $this->title = __("Network Statistics");
     $param['network_id'] = PA::$network_info->network_id;
     $this->network_statistics = Network::get_network_statistics($param);
     $this->inner_HTML = $this->generate_inner_html($this->network_statistics);
     $network_stats = parent::render();
     return $network_stats;
 }
開發者ID:Cyberspace-Networks,項目名稱:PeopleAggregator,代碼行數:9,代碼來源:NetworkStatisticsModule.php

示例2: setup_module

function setup_module($column, $module, $obj)
{
    global $form_data, $error, $error_msg, $configure_permission, $network_info;
    if (!$configure_permission) {
        return 'skip';
    }
    $obj->tpl_to_load = "stats";
    $obj->title = __('General Network Settings');
    $obj->control_type = "basic";
    $obj->form_data = $form_data;
    $obj->error = $error;
    $obj->error_msg = $error_msg;
    $obj->is_edit = TRUE;
    $param['network_id'] = $network_info->network_id;
    $obj->network_stats = Network::get_network_statistics($param);
    // check for meta network control access
    $obj->meta_network_reci_relation = FALSE;
    if ($_SESSION['user']['id'] == SUPER_USER_ID && $network_info->type == MOTHER_NETWORK_TYPE) {
        $obj->meta_network_reci_relation = TRUE;
    }
    //add variables to BlockModule
}
開發者ID:CivicCommons,項目名稱:oldBellCaPA,代碼行數:22,代碼來源:network_statistics.php

示例3: setup_module

function setup_module($column, $module, $obj)
{
    global $form_data, $error, $error_msg;
    $can_mange_settings = false;
    if (PA::$login_uid) {
        // if user can delete network - he can change any settings data!
        $can_mange_settings = User::has_network_permissions(PA::$login_uid, array('delete_network'), true);
    }
    if ($can_mange_settings) {
        $obj->tpl_to_load = "configure";
        $obj->title = __('General Network Settings');
    } else {
        $obj->tpl_to_load = "default";
        $obj->title = __('Administration panel');
    }
    $obj->control_type = "basic";
    $obj->form_data = $form_data;
    $obj->error = $error;
    $obj->error_msg = $error_msg;
    $obj->is_edit = TRUE;
    $param['network_id'] = PA::$network_info->network_id;
    $obj->network_stats = Network::get_network_statistics($param);
    // check for meta network control access
    $obj->meta_network_reci_relation = FALSE;
    if (PA::$login_uid == SUPER_USER_ID && PA::$network_info->type == MOTHER_NETWORK_TYPE) {
        $obj->meta_network_reci_relation = TRUE;
    }
    //add variables to BlockModule
}
開發者ID:Cyberspace-Networks,項目名稱:CoreSystem,代碼行數:29,代碼來源:cnnetwork_configure.php


注:本文中的Network::get_network_statistics方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。