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


PHP UserSession::uget方法代碼示例

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


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

示例1: __construct

 public function __construct()
 {
     //parent::__construct();
     Doo::loadClass('UserSession');
     $usession = new UserSession();
     $this->username = $usession->uget('username');
     $this->ppv_cat_code = 'C_TokoVideo_PPV';
     $this->svod_cat_code = 'C_TokoVideo_International';
 }
開發者ID:berlianaputri,項目名稱:rps,代碼行數:9,代碼來源:AjaxController.php

示例2: overview

 public function overview()
 {
     $this->conf_data['content_view'] = 'content/overview.php';
     $data = $this->conf_data;
     Doo::loadClass('UserSession');
     $usession = new UserSession();
     $username = $usession->uget('username');
     if (!$username) {
         header('Location:' . DOO::conf()->SUBFOLDER . 'login');
     }
     $dbapi = $this->dbapi;
     $data['js'][] = 'raphael-min.js';
     $data['limit'] = 20;
     $gpage = $_GET['page'] - 1;
     if ($_REQUEST['print'] == 'excel') {
         set_time_limit(0);
         $data['limit'] = 99999999;
         unset($gpage);
     }
     $data['username'] = $username;
     $data['dbapi'] = $this->dbapi;
     $data['subregion'] = $this->subregion;
     switch ($_POST['userProvider']) {
         case 3:
             // Flexi
             $data['css'][] = 'trend-telkomsel.css';
             $data['js'][] = 'popup.js';
             $data['js'][] = 'trend-telkomsel.js';
             $data['graph'][0]->type = "trend";
             $data['graph'][0]->data = $dbapi->get_users(3, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             break;
         case 2:
             // Telkomsel
             $data['css'][] = 'trend-telkomsel.css';
             $data['js'][] = 'popup.js';
             $data['js'][] = 'trend-telkomsel.js';
             $data['graph'][0]->type = "trend";
             $data['graph'][0]->data = $dbapi->get_users(2, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             break;
         case 1:
             // Speedy
             $data['css'][] = 'pie-speedy.css';
             $data['css'][] = 'trend-speedy.css';
             $data['js'][] = 'pie-speedy.js';
             $data['js'][] = 'popup.js';
             $data['js'][] = 'trend-speedy.js';
             if (empty($_POST['speedySubRegional'])) {
                 $speedyRegion = explode(';', $_POST['speedyRegional']);
             } else {
                 $speedyRegion = explode(';', $_POST['speedySubRegional']);
             }
             $data['graph'][0]->type = "pie";
             $data['graph'][0]->total = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), false, $speedyRegion);
             $data['graph'][0]->data['binding'] = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), true, $speedyRegion);
             $data['graph'][0]->data['not yet binding'] = $data['graph'][0]->total - $data['graph'][0]->data['binding'];
             $data['graph'][1]->type = "trend";
             $data['graph'][1]->data = $dbapi->get_users(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']), true, $speedyRegion);
             break;
         default:
             $data['css'][] = 'pie.css';
             $data['js'][] = 'pie.js';
             $data['graph']->type = "pie";
             $data['graph']->data['speedy'] = $dbapi->get_user_count(1, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             $data['graph']->data['telkomsel'] = $dbapi->get_user_count(2, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             $data['graph']->data['flexi'] = $dbapi->get_user_count(3, strtotime($_POST['dtfrom']), strtotime($_POST['dtto']));
             $data['graph']->total = $data['graph']->data['speedy'] + $data['graph']->data['telkomsel'] + $data['graph']->data['flexi'];
     }
     $this->view()->renderc(Doo::conf()->language . '/t3', $data);
 }
開發者ID:berlianaputri,項目名稱:rps,代碼行數:69,代碼來源:MainController.php

示例3: UserSession

<?php

Doo::loadClass('UserSession');
$usession = new UserSession();
$username = $usession->uget('username');
?>
<h1>Results on <?php 
echo $data['gdtform'];
?>
 to <?php 
echo $data['gdtto'];
?>
</h1>
<div class="list_wrapper">
	<?/*<h1>User List</h1>*/ ?>
	<?php 
if (!$_REQUEST['print']) {
    ?>
	<div class="row-fluid">
		<?php 
    require_once "filter.php";
    ?>
		<div class="span11 widget white" onTablet="span10" onDesktop="span11" style="margin-top:20px;">					
			<div id="stats-chart3"  style="height:282px" ></div>					
		</div>
		<div id="dialog" title="User Registration Trendings"></div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<?php 
}
開發者ID:berlianaputri,項目名稱:rps,代碼行數:31,代碼來源:new_devices.php


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