当前位置: 首页>>代码示例>>PHP>>正文


PHP RunnerPage::setSessionVariables方法代码示例

本文整理汇总了PHP中RunnerPage::setSessionVariables方法的典型用法代码示例。如果您正苦于以下问题:PHP RunnerPage::setSessionVariables方法的具体用法?PHP RunnerPage::setSessionVariables怎么用?PHP RunnerPage::setSessionVariables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RunnerPage的用法示例。


在下文中一共展示了RunnerPage::setSessionVariables方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setSessionVariables

 /**
  * Set session variables
  */
 public function setSessionVariables()
 {
     parent::setSessionVariables();
     // SearchClause class stuff
     $agregateFields = $this->pSet->getListOfFieldsByExprType(true);
     $this->searchClauseObj->haveAgregateFields = count($agregateFields) > 0;
     $_SESSION[$this->sessionPrefix . '_advsearch'] = serialize($this->searchClauseObj);
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:11,代码来源:chartpage.php

示例2: setSessionVariables

 /**
  * Set session variables
  */
 public function setSessionVariables()
 {
     parent::setSessionVariables();
     $_SESSION[$this->sessionPrefix . '_advsearch'] = serialize($this->searchClauseObj);
     if (!$_SESSION[$this->sessionPrefix . "_pagesize"]) {
         $_SESSION[$this->sessionPrefix . "_pagesize"] = $this->pSet->getInitialPageSize();
     }
     $this->pageSize = $_SESSION[$this->sessionPrefix . "_pagesize"];
     if (!$_SESSION[$this->sessionPrefix . "_pagenumber"]) {
         $_SESSION[$this->sessionPrefix . "_pagenumber"] = 1;
     }
     if (isset($_REQUEST["goto"])) {
         $_SESSION[$this->sessionPrefix . "_pagenumber"] = intval($_REQUEST["goto"]);
     }
     $this->myPage = $_SESSION[$this->sessionPrefix . "_pagenumber"];
     $this->pagestart = ($this->myPage - 1) * $this->pageSize;
 }
开发者ID:kcallow,项目名称:MatchMe,代码行数:20,代码来源:reportpage.php

示例3: setSessionVariables

 /**
  * Set session variables
  */
 function setSessionVariables()
 {
     parent::setSessionVariables();
     $_SESSION[$this->sessionPrefix . '_advsearch'] = serialize($this->searchClauseObj);
 }
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:8,代码来源:dashboardpage.php

示例4: setSessionVariables

 /**
  * Set session variables
  */
 function setSessionVariables()
 {
     parent::setSessionVariables();
     $this->searchClauseObj->parseRequest();
     $_SESSION[$this->sessionPrefix . '_advsearch'] = serialize($this->searchClauseObj);
     //set session order by
     if (@$_REQUEST["orderby"]) {
         $_SESSION[$this->sessionPrefix . "_orderby"] = @$_REQUEST["orderby"];
     }
     //set session goto
     if (@$_REQUEST["goto"]) {
         $_SESSION[$this->sessionPrefix . "_pagenumber"] = @$_REQUEST["goto"];
     }
     //	page number
     $this->myPage = (int) $_SESSION[$this->sessionPrefix . "_pagenumber"];
     if (!$this->myPage) {
         $this->myPage = 1;
     }
     //set page size
     if (!$this->pageSize) {
         $this->pageSize = $this->gPageSize;
     }
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:26,代码来源:listpage.php

示例5: setSessionVariables

 /**
  * Set session variables
  */
 function setSessionVariables()
 {
     parent::setSessionVariables();
     if ($this->searchClauseObj->bIsUsedSrch) {
         // if search used serialize clause object
         $_SESSION[$this->sessionPrefix . '_advsearch'] = serialize($this->searchClauseObj);
     } else {
         // Unset session for search if search not used
         unset($_SESSION[$this->sessionPrefix . '_advsearch']);
     }
     // Unset session for filters if filters  not activated
     if (!$this->searchClauseObj->filtersActivated) {
         unset($_SESSION[$this->sessionPrefix . '_filters']);
     }
     //set session order by
     if (@$_REQUEST["orderby"]) {
         $_SESSION[$this->sessionPrefix . "_orderby"] = @$_REQUEST["orderby"];
     }
     //set session goto
     if (@$_REQUEST["goto"]) {
         $_SESSION[$this->sessionPrefix . "_pagenumber"] = @$_REQUEST["goto"];
     }
     //	page number
     $this->myPage = (int) $_SESSION[$this->sessionPrefix . "_pagenumber"];
     if (!$this->myPage) {
         $this->myPage = 1;
     }
     //set page size
     if (!$this->pageSize) {
         $this->pageSize = $this->gPageSize;
     }
 }
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:35,代码来源:listpage.php


注:本文中的RunnerPage::setSessionVariables方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。