Project

General

Profile

Feature #22463 ยป 14120.diff

Administrator Admin, 2010-04-15 10:54

View differences:

t3lib/class.t3lib_db.php (working copy)
}
}
/**
* Checks if database is connected
*
* @return boolean
*/
public function isConnected() {
return is_resource($this->link);
}
/******************************
*
* Debugging
typo3/sysext/dbal/class.ux_t3lib_db.php (working copy)
}
/**
* Checks if database is connected
*
* @return boolean
*/
public function isConnected() {
$result = false;
switch ((string)$this->handlerCfg[$this->lastHandlerKey]['type']) {
case 'native':
$result = is_resource($this->link);
break;
case 'adodb':
case 'userdefined':
$result = is_object($this->handlerInstance[$this->lastHandlerKey]) && $this->handlerInstance[$this->lastHandlerKey]->isConnected();
break;
}
return $result;
}
/**
* Initialize handler (connecting to database)
*
* @param string Handler key
    (1-1/1)