📄 03-ct_dbm.sgml
字号:
<!-- $Id: 03-ct_dbm.sgml,v 1.1.1.1 2000/04/17 16:40:00 kk Exp $ --><sect1>CT_Dbm<p>The <tt/Session/ class used to contain a bit of SQL to read andwrite session data from and to a database. To make sessionsdatabase independent, <tt/Session/ now makes all storageaccesses through a container class. To let <tt/Session/ use a DBMdatabase file as a container, you use <tt/CT_Dbm/.<sect2>Instance variables<p><table><tabular ca="">dbm_file<colsep>The path to the dbm file (must exist already AND must be writable by the server process)<rowsep></tabular><caption>Accessible instance variables.</caption></table><sect2>Example<p>Use a subclass to provide the appropriate parameters to your container. Usually your subclass looks like this: <tscreen><code>class My_Dbm extends CT_Dbm { var $dbm_file = "data/session.dbm";}</code></tscreen>You can then use My_Dbm in class Session. Reference itby putting "My_Dbm" in the "that_class" variable.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -