Changeset 239 for trunk/docs


Ignore:
Timestamp:
Mar 25, 2007 8:43:40 PM (17 years ago)
Author:
jordan
Message:

Q - fixed ; in mysql upgrade. Jordan - many fixes to upgrade checklist.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt

    r237 r239  
    3131    $cfg['gallery_images_url'] = '/gallery_images';
    3232   
    33 (And of course change the code where they are used to support the array instead of object-properties. If the array is inside of double-quotes it should be written like "{$cfg['gallery_images_url']}/my/path".)
     33And of course change the code where they are used to support the array instead of object-properties. If the array is inside of double-quotes it should be written like:
     34
     35    "{$cfg['gallery_images_url']}/my/path".
     36   
     37If the value used is now to be retreived from a $object->getParam(...) method call, you'll need to do this:
     38
     39    $object->getParam('gallery_images_url') . '/my/path'
    3440
    3541
     
    4551
    4652
    47 5. Expect formatting incosistencies! When doing global search-replace expect whitespace to be erratic, variable names to change, and lines to be otherwise inconsistent. Here's a good example of a safe way to match a line:
     53// 5. Expect formatting incosistencies! When doing global search-replace expect whitespace to be erratic, variable names to change, and lines to be otherwise inconsistent. Here's a good example of a safe way to match a line:
    4854
    4955Searching for "$CFG->ssl_domain = 'www.example.com';":
    5056
    51     $CFG->(\w+)\s*=\s*['"](\w+)['"];
     57//    $CFG->(\w+)\s*=\s*['"](\w+)['"];
    5258
    5359Replace:
     
    9298Convert functions to methods.
    9399
    94 raiseMsg(...)                           $app->raiseMsg(...)
    95 logMsg(...)                             $app->logMsg(...)
     100raiseMsg(...)                           $app->raiseMsg(...) 
     101logMsg(...)                             $app->logMsg(...) 
    96102include 'message_header.ihtml';         $app->printRaisedMessages();
    97 $carry_queries = array(...);            $app->carryQuery(...);
    98 ohref(...)                              $app->ohref(...)
    99 printHiddenSession();                   $app->printHiddenSession();
    100 dieURL(...);                            $app->dieURL(...);
    101 dieBoomerangURL(...);                   $app->dieBoomerangURL(...);
    102 setBoomerangURL(...);                   $app->setBoomerangURL(...);
    103 getBoomerangURL(...);                   $app->getBoomerangURL(...);
    104 validBoomerangURL(...);                 $app->validBoomerangURL(...);
    105 deleteBoomerangURL(...);                $app->deleteBoomerangURL(...);
     103$carry_queries = array(... , ...);      $app->carryQuery(...);  //call for each value in array
     104ohref(...)                              $app->ohref(...) 
     105printHiddenSession();                   $app->printHiddenSession(); 
     106dieURL(...);                            $app->dieURL(...); 
     107dieBoomerangURL(...);                   $app->dieBoomerangURL(...); 
     108setBoomerangURL(...);                   $app->setBoomerangURL(...); 
     109getBoomerangURL(...);                   $app->getBoomerangURL(...); 
     110validBoomerangURL(...);                 $app->validBoomerangURL(...); 
     111deleteBoomerangURL(...);                $app->deleteBoomerangURL(...); 
    106112sslOn();                                $app->sslOn();
    107113sslOff();                               $app->sslOff();
    108114
     115$CFG->site_name                         $app->getParam('site_name')
    109116
    110117=====================================================================
     
    150157
    151158$nav->addPage(...)                      $nav->add(...)
    152 $nav->setFeature(...)                   $nav->set(...)
     159$nav->setFeature(array(...))            $nav->set(...)
    153160$nav->getFeature(...)                   $nav->get(...)
    154161$nav->getTitle()                        $nav->get('title')
     
    156163$nav->getPath()                         $nav->get('path')
    157164$nav->printPath()                       echo $nav->get('path')
    158 $nav->getBreadcrumbs()                  $nav->getBreadcrumbs()
    159165$nav->printBreadcrumbs()                echo $nav->getBreadcrumbs()
     166
     167$nav->path_delimiter                    $nav->getParam('path_delimiter')
     168NOTE: this applies to any object property that has been converted to a param.
     169
    160170
    161171=====================================================================
     
    172182NOTE: new instantiation interface
    173183
    174 $prefs->setDefault(...)                 $prefs->setDefaults(array(...))
     184$prefs->setDefault(..., scope)                 $prefs->setDefaults(array(...))
    175185NOTE: plurality - function need not be called once-per-default.
    176186
     
    197207
    198208    global $lock;
     209    global $auth;
    199210    $lock =& Lock::getInstance($auth);
    200211     
     
    222233to:
    223234
    224     $version = Version::getInstance($auth);
     235    $version =& Version::getInstance($auth);
    225236
    226237
     
    253264NOTE: notice method arguments have been reversed.
    254265
    255 SessionCache::getCache(...)             $cache->set(...)
     266SessionCache::getCache(...)             $cache->get(...)
    256267SessionCache::isCached(...)             $cache->exists(...)
    257268SessionCache::breakCache(...)           $cache->delete(...)
     
    266277$file->allow_overwriting = true;        $file->setParam('allow_overwriting', true);
    267278$file->valid_file_extensions = true;        $file->setParam('valid_file_extensions', true);
    268 $file->$dest_file_perms = true;        $file->setParam('$dest_file_perms', true);
     279$file->dest_file_perms = 0666;        $file->setParam('dest_file_perms', 0666);
    269280...etc.
    270281
     
    282293NOTE: The functionality of this has changed, better check output is valid.
    283294
     295=====================================================================
     296FormValidator
     297=====================================================================
     298
     299include 'form_error_header.ihtml';      $fv->printErrorMessages();
    284300
    285301
  • trunk/docs/upgrade_v1-to-v2.mysql

    r238 r239  
    11# Upgrade version_tbl.
    22ALTER TABLE `version_tbl` ADD version_number SMALLINT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER version_title;
    3 ALTER TABLE `version_tbl` ADD version_notes VARCHAR(255) NOT NULL DEFAULT '' AFTER version_number
    4 ALTER TABLE `version_tbl` ADD saved_by_user_id SMALLINT(11) NOT NULL DEFAULT '0' AFTER version_notes
     3ALTER TABLE `version_tbl` ADD version_notes VARCHAR(255) NOT NULL DEFAULT '' AFTER version_number;
     4ALTER TABLE `version_tbl` ADD saved_by_user_id SMALLINT(11) NOT NULL DEFAULT '0' AFTER version_notes;
    55UPDATE `version_tbl` SET saved_by_user_id = saved_by_admin_id;
    66ALTER TABLE `version_tbl` DROP saved_by_admin_id;
     7
Note: See TracChangeset for help on using the changeset viewer.