当前位置: 首页>>代码示例>>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;未经允许,请勿转载。