ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:reference:persist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:session:reference:persist [2016/05/22 17:18] mnewnhamv5:session:reference:persist [2018/07/01 22:55] (current) – prefer functions start lowercase (#430) peterdd
Line 1: Line 1:
-====== ADOdb_Session::persit======+====== ADOdb_Session::persist======
 ~~NOTOC~~ ~~NOTOC~~
 <WRAP right box> <WRAP right box>
 ==Syntax== ==Syntax==
   mixed ADOdb_Session::persist(   mixed ADOdb_Session::persist(
-    optional mixed $persistantConnection+    optional mixed $connectMode
     )     )
 </WRAP> </WRAP>
 ===== Description ======= ===== Description =======
-The **static** method //**persists**// sets or gets the status of a persistent connection on the session connection. This is not the same value as the driver associated with the database abstraction layer.+The **static** method //**persist**// sets or gets the status of a persistent connection on the session connection. This is not the same value as the driver associated with the database abstraction layer.
  
-The value must be set **//before//** [[v5:session:reference:config|config()]] is called+The value must be set **//before//** [[v5:session:reference:config|config()]] is called.
  
  
Line 16: Line 16:
  
 ^$connectMode^Connection Method^ ^$connectMode^Connection Method^
-^true|PConnect()| +^true|pConnect()| 
-^false|Connect()| +^false|connect()| 
-^'N'|NConnect()| +^'N'|nConnect()| 
-^'P'|PConnect()| +^'P'|pConnect()| 
-^'C'|Connect()|+^'C'|connect()|
    
 =====Use As A Getter===== =====Use As A Getter=====
Line 31: Line 31:
 include_once "adodb/session/adodb-session2.php"; include_once "adodb/session/adodb-session2.php";
  
-ADOdb_session::driver('oci8'); +ADOdb_Session::driver('oci8'); 
-ADOdb_session::persist(true); +ADOdb_Session::persist(true); 
-ADOdb_session::config('',$host,$user,$pass,$database);+ADOdb_Session::config('',$host,$user,$pass,$database);
  
 </code> </code>
v5/session/reference/persist.1463930333.txt.gz · Last modified: 2017/04/21 11:38 (external edit)