/** * 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); } }
/** * 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); } }
/** * 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); }
public static function create() { if (!self::$exists) { self::$exists = session_start(); } return self::$exists; }
public static function getSession() { if (is_null(self::$instance) || !isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * 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); } }
/** * 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()); }
/** * 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); }
<?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';
/** * 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); }
/** * Save Session data of this object * * @param SessionContext $sessionContext * @return void */ public function setSessionVars($sessionContext) { $sessionContext->setObjVar($this->m_Name, "LastRenderedForm", $this->m_LastRenderedForm); }