Changeset 136 for trunk/docs


Ignore:
Timestamp:
Jun 3, 2006 7:47:48 PM (18 years ago)
Author:
scdev
Message:

Q - Merged branches/2.0singleton into trunk. Completed updating classes to use singleton methods. Implemented tests. Fixed some bugs. Changed some interfaces.

Location:
trunk/docs
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/coding_standards.txt

    r121 r136  
    183183        ?>
    184184        <div align="right" class="sc-tiny">
    185         [&nbsp;<a href="<?php echo App::oHREF('contact.php') ?>">Contact us</a>&nbsp;]
     185        [&nbsp;<a href="<?php echo $app->oHREF('contact.php') ?>">Contact us</a>&nbsp;]
    186186        </div>
    187187        <?php
     
    214214    function getSetEnumFieldValues()
    215215    {
    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);
    217219
    218220        $row = mysql_fetch_row($qid);
  • trunk/docs/example_config.inc.php

    r101 r136  
    7070// DB credentials for command line scripts stored in a file with read rights
    7171// 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.
    7373require_once 'global/db_auth.inc.php';
    7474
     75// Start application-based functionality: database, session, environment, ini setup, etc.
    7576// Most configuration parameters must be set before starting the App.
    7677$app->start();
     78
     79// Global DB object. Automatically preconfigured by $app->start().
     80$db =& DB::getInstance();
    7781
    7882// User authentication.
  • trunk/docs/example_script_template.php

    r21 r136  
    1111
    1212$auth->requireLogin();
    13 App::sslOn();
     13$app->sslOn();
    1414
    1515require_once 'codebase/lib/FormValidator.inc.php';
  • trunk/docs/file_layout.txt

    r42 r136  
    5555        RecordVersion.inc.php (db record versioning system)
    5656        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)
    5858        SortOrder.inc.php (class dealing with sorting of columns in database generated lists)
    5959        SpellCheck.inc.php
  • trunk/docs/revision_history.txt

    r124 r136  
    3131    - RecordLock
    3232    - RecordVersion
    33     - SessionCache
     33    - Cache
    3434    - Upload
    3535
     
    5656    - app object can be accessed globally without reference to object name by calling methods statically, e.g. App:logMsg()
    5757    - 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.
    5959      F or site configurations do whatever you want (I'm using $cfg['node']['features'] format for configurations)
    6060
     
    6868
    6969DB 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.
    7171
    7272Full 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.