27 $oDB->addIndex(
"session",
"idx_session_update_mid", array(
"member_srl",
"last_update",
"cur_mid"));
40 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
43 if(!$oDB->isTableExists(
'session'))
return true;
44 if(!$oDB->isColumnExists(
"session",
"cur_mid"))
return true;
45 if(!$oDB->isIndexExists(
"session",
"idx_session_update_mid"))
return true;
61 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
64 if(!$oDB->isTableExists(
'session'))
66 $oDB->createTableByXmlFile($this->module_path.
'schemas/session.xml');
68 if(!$oDB->isColumnExists(
"session",
"cur_mid"))
70 $oDB->addColumn(
'session',
"cur_mid",
"varchar",128);
72 if(!$oDB->isIndexExists(
"session",
"idx_session_update_mid"))
74 $oDB->addIndex(
"session",
"idx_session_update_mid", array(
"member_srl",
"last_update",
"cur_mid"));
88 $vars = preg_split(
'/([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff^|]*)\|/', $val,-1,PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
89 for($i=0; $vars[$i]; $i++) $result[$vars[$i++]] = unserialize($vars[$i]);
98 if(!count($data))
return;
101 foreach($data as $key => $val) $str .= $key.
'|'.serialize($val);
102 return substr($str, 0, strlen($str)-1).
'}';
session module's high class
getController($module_name)
unSerializeSession($val)
session string decode
moduleInstall()
Additional tasks required to accomplish during the installation.
moduleUpdate()
Execute update.
serializeSession($data)
session string encode
getInstance($db_type=NULL)
checkUpdate()
A method to check if the installation has been successful.
recompileCache()
Re-generate the cache file.