Revision 2011
Added by darkviper almost 12 years ago
| branches/2.8.x/CHANGELOG | ||
|---|---|---|
| 11 | 11 |
! = Update/Change |
| 12 | 12 |
=============================================================================== |
| 13 | 13 |
|
| 14 |
03 Nov-2013 Build 2011 Manuela v.d.Decken(DarkViper) |
|
| 15 |
! WbDatabase added method fetchObject() |
|
| 16 |
! WbAdaptor little typofixes |
|
| 17 |
! /index.php added one more update of WbAdaptor |
|
| 14 | 18 |
03 Nov-2013 Build 2010 Manuela v.d.Decken(DarkViper) |
| 15 | 19 |
! WbAutoloader added possibility to load classes with additional file prefix 'class.' |
| 16 | 20 |
27 Nov-2013 Build 2009 Manuela v.d.Decken(DarkViper) |
| branches/2.8.x/wb/admin/interface/version.php | ||
|---|---|---|
| 51 | 51 |
|
| 52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
| 53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.3');
|
| 54 |
if(!defined('REVISION')) define('REVISION', '2010');
|
|
| 54 |
if(!defined('REVISION')) define('REVISION', '2011');
|
|
| 55 | 55 |
if(!defined('SP')) define('SP', '');
|
| branches/2.8.x/wb/framework/WbDatabase.php | ||
|---|---|---|
| 615 | 615 |
class mysql {
|
| 616 | 616 |
|
| 617 | 617 |
private $result = null; |
| 618 |
private $_db_handle = null;
|
|
| 618 |
private $oDbHandle = null;
|
|
| 619 | 619 |
|
| 620 | 620 |
/** |
| 621 | 621 |
* query sql statement |
| ... | ... | |
| 666 | 666 |
*/ |
| 667 | 667 |
function fetchObject($sClassName = null, array $aParams = null) |
| 668 | 668 |
{
|
| 669 |
return mysql_fetch_object($this->result, $sClassName, $aParams); |
|
| 669 |
if ($sClassName === null || class_exists($sClassName)) {
|
|
| 670 |
return mysql_fetch_object($this->result, $sClassName, $aParams); |
|
| 671 |
} else {
|
|
| 672 |
throw new WbDatabaseException('Class <'.$sClassName.'> not available on request of mysql_fetch_object()');
|
|
| 673 |
} |
|
| 670 | 674 |
} |
| 671 | 675 |
/** |
| 672 | 676 |
* rewind |
| branches/2.8.x/wb/framework/WbAdaptor.php | ||
|---|---|---|
| 35 | 35 |
class WbAdaptor {
|
| 36 | 36 |
|
| 37 | 37 |
/** active instance */ |
| 38 |
private static $_oInstance = null;
|
|
| 38 |
protected static $_oInstance = null;
|
|
| 39 | 39 |
/** array hold settings */ |
| 40 |
private $_aSys = array();
|
|
| 40 |
protected $_aSys = array();
|
|
| 41 | 41 |
/** constructor */ |
| 42 | 42 |
protected function __construct() |
| 43 | 43 |
{
|
| branches/2.8.x/wb/index.php | ||
|---|---|---|
| 24 | 24 |
{
|
| 25 | 25 |
require_once($config_file); |
| 26 | 26 |
} |
| 27 |
|
|
| 28 | 27 |
// Check if the config file has been set-up |
| 29 | 28 |
if(!defined('TABLE_PREFIX'))
|
| 30 | 29 |
{
|
| ... | ... | |
| 66 | 65 |
// Load functions available to templates, modules and code sections |
| 67 | 66 |
// also, set some aliases for backward compatibility |
| 68 | 67 |
require(WB_PATH.'/framework/frontend.functions.php'); |
| 69 |
|
|
| 68 |
// reload all of the already defined global constants |
|
| 69 |
WbAdaptor::getInstance()->getWbConstants(); |
|
| 70 | 70 |
// redirect menu-link |
| 71 | 71 |
/** |
| 72 | 72 |
* |
Also available in: Unified diff
! WbDatabase added method fetchObject()
! WbAdaptor little typofixes
! /index.php added one more update of WbAdaptor