예제 #1
0
 /**
  * Save object variable to session context
  *
  * @param SessionContext $sessionContext
  * @return void
  */
 public function setSessionVars($sessionContext)
 {
     if ($this->m_DropSession) {
         $sessionContext->cleanObj($this->m_Name, true);
     } else {
         $sessionContext->setObjVar($this->m_Name, "ActiveRecord", $this->m_ActiveRecord, true);
         $sessionContext->setObjVar($this->m_Name, "FormInputs", $this->m_FormInputs, true);
     }
 }
예제 #2
0
 /**
  * Save Session data of this object
  *
  * @param SessionContext $sessionContext
  * @return void
  */
 public function setSessionVars($sessionContext)
 {
     if ($this->m_DropSession) {
         $sessionContext->cleanObj($this->m_Name, true);
     } else {
         $sessionContext->setObjVar($this->m_Name, "FormStates", $this->m_FormStates, true);
         $sessionContext->setObjVar($this->m_Name, "CurrentStep", $this->m_CurrentStep, true);
     }
 }
예제 #3
0
 /**
  * Save object variable to session context
  *
  * @param SessionContext $sessionContext
  * @return void
  */
 public function setSessionVars($sessionContext)
 {
     $sessionContext->setObjVar($this->m_Name, "RecordId", $this->m_RecordId);
     $sessionContext->setObjVar($this->m_Name, "FixSearchRule", $this->m_FixSearchRule);
     $sessionContext->setObjVar($this->m_Name, "SearchRule", $this->m_SearchRule);
     $sessionContext->setObjVar($this->m_Name, "SearchRuleBindValues", $this->m_SearchRuleBindValues);
     $sessionContext->setObjVar($this->m_Name, "SubForms", $this->m_SubForms);
     $sessionContext->setObjVar($this->m_Name, "CurrentPage", $this->m_CurrentPage);
     $sessionContext->setObjVar($this->m_Name, "PageSize", $this->m_Range);
     $sessionContext->setObjVar($this->m_Name, "SearchPanelValues", $this->m_SearchPanelValues);
 }
예제 #4
0
 public static function create()
 {
     if (!self::$exists) {
         self::$exists = session_start();
     }
     return self::$exists;
 }
예제 #5
0
 public static function getSession()
 {
     if (is_null(self::$instance) || !isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
예제 #6
0
 /**
  * Save Session variables/data of this object
  *
  * @param SessionContext $sessionContext
  * @return void
  */
 public function setSessionVars($sessionContext)
 {
     if ($this->m_Stateless == "Y") {
         return;
     }
     $sessionContext->setObjVar($this->m_Name, "RecordId", $this->m_RecordId);
     $sessionContext->setObjVar($this->m_Name, "SearchRule", $this->m_SearchRule);
     $sessionContext->setObjVar($this->m_Name, "SortRule", $this->m_SortRule);
     $sessionContext->setObjVar($this->m_Name, "OtherSqlRule", $this->m_OtherSQLRule);
     if (is_array($this->m_Association)) {
         $sessionContext->setObjVar($this->m_Name, "Association", $this->m_Association);
     }
 }
예제 #7
0
파일: BizForm.php 프로젝트: que273/siremis
 /**
  * BizForm::SetSessionContext() - Save Session data of this object
  *
  * @param SessionContext $sessCtxt
  * @return void
  */
 public function setSessionVars($sessCtxt)
 {
     if ($this->m_Stateless == "Y") {
         return;
     }
     $sessCtxt->setObjVar($this->m_Name, "Mode", $this->m_Mode);
     $sessCtxt->setObjVar($this->m_Name, "SubForms", $this->m_SubForms);
     $sessCtxt->setObjVar($this->m_Name, "ParentFormName", $this->m_ParentFormName);
     $sessCtxt->setObjVar($this->m_Name, "PrtCommitPending", $this->m_PrtCommitPending);
     $sessCtxt->setObjVar($this->m_Name, "FixSearchRule", $this->m_FixSearchRule);
     $sessCtxt->setObjVar($this->m_Name, "OnSortField", $this->m_OnSortField);
     $sessCtxt->setObjVar($this->m_Name, "OnSortFlag", $this->m_OnSortFlag);
     $sessCtxt->setObjVar($this->m_Name, "RecordId", $this->m_RecordId);
     //$sessCtxt->setObjVar($this->m_Name, "ActiveRecord", $this->m_ActiveRecord);
     $sessCtxt->setObjVar($this->m_Name, "CurrentPage", $this->m_CurrentPage);
     $sessCtxt->setObjVar($this->m_Name, "TotalRecords", $this->m_TotalRecords);
     // before release object, set the view history
     $sessCtxt->setViewHistory($this->m_Name, $this->GetHistoryInfo());
 }
예제 #8
0
 /**
  * Save object variable to session context
  *
  * @param SessionContext $sessionContext
  * @return void
  */
 public function setSessionVars($sessionContext)
 {
     $sessionContext->setObjVar($this->m_Name, "RecordId", $this->m_RecordId);
     $sessionContext->setObjVar($this->m_Name, "FixSearchRule", $this->m_FixSearchRule);
     $sessionContext->setObjVar($this->m_Name, "SearchRule", $this->m_SearchRule);
     $sessionContext->setObjVar($this->m_Name, "QueryParams", $this->queryParams);
     $sessionContext->setObjVar($this->m_Name, "SubForms", $this->m_SubForms);
     $sessionContext->setObjVar($this->m_Name, "ParentFormName", $this->m_ParentFormName);
     $sessionContext->setObjVar($this->m_Name, "DefaultFormName", $this->m_DefaultFormName);
     $sessionContext->setObjVar($this->m_Name, "CurrentPage", $this->m_CurrentPage);
     $sessionContext->setObjVar($this->m_Name, "PageSize", $this->m_Range);
     $sessionContext->setObjVar($this->m_Name, "ReferenceFormName", $this->m_ReferenceFormName);
     $sessionContext->setObjVar($this->m_Name, "SearchPanelValues", $this->m_SearchPanelValues);
 }
예제 #9
0
파일: bootstrap.php 프로젝트: amigobv/chat
<?php

error_reporting(E_ALL);
ini_set('display_errors', 'On');
spl_autoload_register(function ($class) {
    require_once 'lib/' . $class . '.php';
});
SessionContext::create();
$datamode = 'pdo';
switch ($datamode) {
    //case 'mysqli':
    case 'pdo':
        break;
    default:
        $datamode = 'mock';
        break;
}
require_once 'lib/data/DataManager_' . $datamode . '.php';
예제 #10
0
파일: BizView.php 프로젝트: que273/siremis
 /**
  * BizView::SetSessionContext() - Save Session data of this object
  *
  * @param SessionContext $sessCtxt
  * @return void
  */
 public function setSessionVars($sessCtxt)
 {
     $paramArray = $this->_getParameterArray();
     $sessCtxt->setObjVar($this->m_Name, "Parameters", $paramArray);
 }
예제 #11
0
 /**
  * Save Session data of this object
  *
  * @param SessionContext $sessionContext
  * @return void
  */
 public function setSessionVars($sessionContext)
 {
     $sessionContext->setObjVar($this->m_Name, "LastRenderedForm", $this->m_LastRenderedForm);
 }