本文整理汇总了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);
}
示例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;
}
示例3: setSessionVariables
/**
* Set session variables
*/
function setSessionVariables()
{
parent::setSessionVariables();
$_SESSION[$this->sessionPrefix . '_advsearch'] = serialize($this->searchClauseObj);
}
示例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;
}
}
示例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;
}
}