Changeset 136 for trunk/docs
- Timestamp:
- Jun 3, 2006 7:47:48 PM (18 years ago)
- Location:
- trunk/docs
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/coding_standards.txt
r121 r136 183 183 ?> 184 184 <div align="right" class="sc-tiny"> 185 [ <a href="<?php echo App::oHREF('contact.php') ?>">Contact us</a> ]185 [ <a href="<?php echo $app->oHREF('contact.php') ?>">Contact us</a> ] 186 186 </div> 187 187 <?php … … 214 214 function getSetEnumFieldValues() 215 215 { 216 $qid = DB::query("SHOW COLUMNS FROM $db_table LIKE '$db_col'",false); 216 $db =& DB::getInstance(); 217 218 $qid = $db->query("SHOW COLUMNS FROM $db_table LIKE '$db_col'",false); 217 219 218 220 $row = mysql_fetch_row($qid); -
trunk/docs/example_config.inc.php
r101 r136 70 70 // DB credentials for command line scripts stored in a file with read rights 71 71 // given only to the user who will be executing the scripts: -rw------- 72 // This file includes App::method calls so must be included after App.72 // This file includes $app-> method calls so must be included after App. 73 73 require_once 'global/db_auth.inc.php'; 74 74 75 // Start application-based functionality: database, session, environment, ini setup, etc. 75 76 // Most configuration parameters must be set before starting the App. 76 77 $app->start(); 78 79 // Global DB object. Automatically preconfigured by $app->start(). 80 $db =& DB::getInstance(); 77 81 78 82 // User authentication. -
trunk/docs/example_script_template.php
r21 r136 11 11 12 12 $auth->requireLogin(); 13 App::sslOn();13 $app->sslOn(); 14 14 15 15 require_once 'codebase/lib/FormValidator.inc.php'; -
trunk/docs/file_layout.txt
r42 r136 55 55 RecordVersion.inc.php (db record versioning system) 56 56 ScriptTimer.inc.php (timer for scripts) 57 SessionCache.inc.php (class for accessing a cache in a users session, stores any variables for quick retreival)57 Cache.inc.php (class for accessing a cache in a users session, stores any variables for quick retreival) 58 58 SortOrder.inc.php (class dealing with sorting of columns in database generated lists) 59 59 SpellCheck.inc.php -
trunk/docs/revision_history.txt
r124 r136 31 31 - RecordLock 32 32 - RecordVersion 33 - SessionCache33 - Cache 34 34 - Upload 35 35 … … 56 56 - app object can be accessed globally without reference to object name by calling methods statically, e.g. App:logMsg() 57 57 - seperate application and codebase parameters from site configuration variables. 58 Use $app->getParam('var') or App::getParam('var') to get app params.58 Use $app->getParam('var') or $app->getParam('var') to get app params. 59 59 F or site configurations do whatever you want (I'm using $cfg['node']['features'] format for configurations) 60 60 … … 68 68 69 69 DB object: 70 - Self contained class for DB functions. db::query is the only necessary function. Maintains connections and state independent of App.70 - Self contained class for DB functions. $db->query is the only necessary function. Maintains connections and state independent of App. 71 71 72 72 Full test suite for all codebase libraries. Run from the command line: "codebase/tests/run_tests.sh;"
Note: See TracChangeset
for help on using the changeset viewer.