⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 03-ct_sql.sgml

📁 PHPLOB注释详细版 使用模板技术的好帮手 PHP最有用的东东了
💻 SGML
字号:
<!-- $Id: 03-ct_sql.sgml,v 1.1.1.1 2000/04/17 16:40:01 kk Exp $ --><sect1>CT_Sql<p>The <tt/Session/ class used to contain a bit of SQL to readand write session data from and to a database. To make sessionsdatabase independent, this SQL has been isolated and put ina separate class, <tt/CT&lowbar;Sql/. <tt/Session/ now makesall storage accesses through a container class, which may ormay not be an SQL container.<sect2>Instance variables<p><table><tabular ca="">database&lowbar;table<colsep>The name of the database table which should be used<rowsep>database&lowbar;class<colsep>A classname. CT&lowbar;Sql uses this class to store and retrieve data<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&lowbar;Sql extends CT&lowbar;Sql {	var $classname = "My&lowbar;Sql";	var $database&lowbar;table = "active&lowbar;sessions";	var $database&lowbar;class = "DB&lowbar;Session";}</code></tscreen>You can then use My&lowbar;Sql in class Session. Reference itby putting "My&lowbar;Sql" in the "that&lowbar;class" variable.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -