本文整理汇总了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;
}
示例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
}
示例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
}