10 if (!class_exists(
'DB')) {
11 include_once(
'DB.php');
119 return 'url=`'.$this->getURL().
'\', table=`
'.$this->getTable().'\
'';
140 function PGTStorageDB($cas_parent,
$user,$password,$database_type,$hostname,$port,$database,$table)
142 phpCAS::traceBegin();
154 $this->_url = $database_type.
':'.
'//'.$user.
':'.$password.
'@'.
$server.
':'.$port.
'/'.$database;
171 phpCAS::traceBegin();
179 $this->_link = DB::connect($this->
getURL());
180 if ( DB::isError($this->_link) ) {
181 phpCAS::error(
'could not connect to database ('.DB::errorMessage($this->_link).
')');
183 var_dump($this->_link);