Changeset 7 for trunk/docs
- Timestamp:
- Aug 30, 2005 9:14:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/revision_history.txt
r6 r7 1 1 -------------------------------------------------------------------------------- 2 Strangecode base branch 2.0 dev2 Strangecode codebase 2.0 3 3 -------------------------------------------------------------------------------- 4 4 … … 13 13 remove interdependencies: 14 14 - App() is the only dependency for other classes. It includes Utilities.inc.php silently. 15 - admin_id vs. user_id 16 - libs requiring external files, such as html templates and email templates, make classes self-contained. 15 - Update libs requiring external files, such as html templates and email templates, classes now self-contained. 17 16 18 App object: 19 - object belongs to a realm, keeping messages and session data within specific site/app. 20 - uses the singleton pattern so only one instance of App exists for each app. 21 - app object can be accessed globally without reference to object name by calling methods statically, e.g. App:logMsg() 22 - seperate application and codebase parameters from site configuration variables. 23 Use $app->getParam('var') or App::getParam('var') to get app params and for site configurations do whatever you want 24 I'm using $cfg['node']['features'] format for configurations 25 26 Application configuration vars 27 - defaults part of the app class 28 - do not need to be set in any specific order 17 Things with modified interfaces: 18 - App 19 - Auth_SQL 20 - DB 21 - DBSessionHandler 22 - RecordLock 23 - RecordVersion 24 - SessionCache 29 25 30 26 One application will always have distinct: … … 34 30 - debugging 35 31 - charset 36 - maybe sessions32 - session data 37 33 - Objects: 38 - auth object39 - security roster34 - auth 35 - db 40 36 - Environment: 41 - even seperate codebase installs if necessary42 - include path37 - seperate codebase installs if necessary for each app 38 - unique include path 43 39 - site/doc/web root 44 40 - lang 45 41 - $dbh database handler 42 43 App object: 44 - object belongs to a realm, keeping messages and session data within specific site/app. 45 - uses the singleton pattern so only one instance of App exists for each app. 46 - app object can be accessed globally without reference to object name by calling methods statically, e.g. App:logMsg() 47 - seperate application and codebase parameters from site configuration variables. 48 Use $app->getParam('var') or App::getParam('var') to get app params. 49 F or site configurations do whatever you want (I'm using $cfg['node']['features'] format for configurations) 50 51 App configuration parameters 52 - defaults part of the app class 53 - do not need to be set in any specific order 54 - missing vars are dynamically accounted for. 46 55 47 56 DB object: 48 57 - Self contained class for DB functions. db::query is the only necessary function. Maintains connections and state independent of App. 49 50 Things with modified interfaces:51 - App52 - Auth_SQL53 - DB54 - DBSessionHandler.inc.php55 - RecordLock56 - RecordVersion57 - SessionCache.inc.php58 58 59 59 Full test suite for all codebase libraries. Run from the command line: "codebase/tests/run_tests.sh;" … … 61 61 Classes that access database tables have a function initDB() that will setup the basic schema necessary to run. This includes Auth_SQL, RecordVersion, RecordLock, and DBSessionHandler. 62 62 63 And much much more still to document... 64 65 66 63 67 -------------------------------------------------------------------------------- 64 Strangecode base branch 1.0 release68 Strangecode codebase 1.0.0 release 65 69 -------------------------------------------------------------------------------- 66 70
Note: See TracChangeset
for help on using the changeset viewer.