Changeset 239 for trunk/docs
- Timestamp:
- Mar 25, 2007 8:43:40 PM (17 years ago)
- Location:
- trunk/docs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt
r237 r239 31 31 $cfg['gallery_images_url'] = '/gallery_images'; 32 32 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".) 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: 34 35 "{$cfg['gallery_images_url']}/my/path". 36 37 If 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' 34 40 35 41 … … 45 51 46 52 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: 48 54 49 55 Searching for "$CFG->ssl_domain = 'www.example.com';": 50 56 51 $CFG->(\w+)\s*=\s*['"](\w+)['"];57 // $CFG->(\w+)\s*=\s*['"](\w+)['"]; 52 58 53 59 Replace: … … 92 98 Convert functions to methods. 93 99 94 raiseMsg(...) $app->raiseMsg(...) 95 logMsg(...) $app->logMsg(...) 100 raiseMsg(...) $app->raiseMsg(...) 101 logMsg(...) $app->logMsg(...) 96 102 include '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 104 ohref(...) $app->ohref(...) 105 printHiddenSession(); $app->printHiddenSession(); 106 dieURL(...); $app->dieURL(...); 107 dieBoomerangURL(...); $app->dieBoomerangURL(...); 108 setBoomerangURL(...); $app->setBoomerangURL(...); 109 getBoomerangURL(...); $app->getBoomerangURL(...); 110 validBoomerangURL(...); $app->validBoomerangURL(...); 111 deleteBoomerangURL(...); $app->deleteBoomerangURL(...); 106 112 sslOn(); $app->sslOn(); 107 113 sslOff(); $app->sslOff(); 108 114 115 $CFG->site_name $app->getParam('site_name') 109 116 110 117 ===================================================================== … … 150 157 151 158 $nav->addPage(...) $nav->add(...) 152 $nav->setFeature( ...)$nav->set(...)159 $nav->setFeature(array(...)) $nav->set(...) 153 160 $nav->getFeature(...) $nav->get(...) 154 161 $nav->getTitle() $nav->get('title') … … 156 163 $nav->getPath() $nav->get('path') 157 164 $nav->printPath() echo $nav->get('path') 158 $nav->getBreadcrumbs() $nav->getBreadcrumbs()159 165 $nav->printBreadcrumbs() echo $nav->getBreadcrumbs() 166 167 $nav->path_delimiter $nav->getParam('path_delimiter') 168 NOTE: this applies to any object property that has been converted to a param. 169 160 170 161 171 ===================================================================== … … 172 182 NOTE: new instantiation interface 173 183 174 $prefs->setDefault(... ) $prefs->setDefaults(array(...))184 $prefs->setDefault(..., scope) $prefs->setDefaults(array(...)) 175 185 NOTE: plurality - function need not be called once-per-default. 176 186 … … 197 207 198 208 global $lock; 209 global $auth; 199 210 $lock =& Lock::getInstance($auth); 200 211 … … 222 233 to: 223 234 224 $version = Version::getInstance($auth);235 $version =& Version::getInstance($auth); 225 236 226 237 … … 253 264 NOTE: notice method arguments have been reversed. 254 265 255 SessionCache::getCache(...) $cache-> set(...)266 SessionCache::getCache(...) $cache->get(...) 256 267 SessionCache::isCached(...) $cache->exists(...) 257 268 SessionCache::breakCache(...) $cache->delete(...) … … 266 277 $file->allow_overwriting = true; $file->setParam('allow_overwriting', true); 267 278 $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); 269 280 ...etc. 270 281 … … 282 293 NOTE: The functionality of this has changed, better check output is valid. 283 294 295 ===================================================================== 296 FormValidator 297 ===================================================================== 298 299 include 'form_error_header.ihtml'; $fv->printErrorMessages(); 284 300 285 301 -
trunk/docs/upgrade_v1-to-v2.mysql
r238 r239 1 1 # Upgrade version_tbl. 2 2 ALTER 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 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; 5 5 UPDATE `version_tbl` SET saved_by_user_id = saved_by_admin_id; 6 6 ALTER TABLE `version_tbl` DROP saved_by_admin_id; 7
Note: See TracChangeset
for help on using the changeset viewer.