本文整理匯總了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
}