Sebastian tested to use Scheduler
This commit is contained in:
parent
2d5684a528
commit
855ae6dcd4
1 changed files with 39 additions and 39 deletions
|
@ -22,8 +22,8 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: sebastian $
|
||||||
Version : $Revision: 1.2 $
|
Version : $Revision: 1.3 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/xmlrpc/schedulerPhpClient.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/xmlrpc/schedulerPhpClient.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -374,14 +374,14 @@ class SchedulerPhpClient{
|
||||||
$this->debug = $debug;
|
$this->debug = $debug;
|
||||||
$this->verbose = $verbose;
|
$this->verbose = $verbose;
|
||||||
$confPrefix = "scheduler";
|
$confPrefix = "scheduler";
|
||||||
// $confPrefix = "storage";
|
# $confPrefix = "storage";
|
||||||
$serverPath =
|
$serverPath =
|
||||||
"http://{$config["{$confPrefix}UrlHost"]}:{$config["{$confPrefix}UrlPort"]}".
|
"http://{$config["{$confPrefix}UrlHost"]}:{$config["{$confPrefix}UrlPort"]}".
|
||||||
"{$config["{$confPrefix}UrlPath"]}/{$config["{$confPrefix}XMLRPC"]}";
|
"{$config["{$confPrefix}UrlPath"]}/{$config["{$confPrefix}XMLRPC"]}";
|
||||||
#$serverPath = "http://localhost:80/livesupportStorageServerCVS/xmlrpc/xrLocStor.php";
|
#$serverPath = "http://localhost:80/livesupportStorageServerCVS/xmlrpc/xrLocStor.php";
|
||||||
if($this->verbose) echo "serverPath: $serverPath\n";
|
if($this->verbose) echo "serverPath: $serverPath\n";
|
||||||
$url = parse_url($serverPath);
|
$url = parse_url($serverPath);
|
||||||
$this->client = new XML_RPC_Client($url['path'], $url['host']);
|
$this->client = new XML_RPC_Client($url['path'], $url['host'], $url['port']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -470,7 +470,7 @@ class SchedulerPhpClient{
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
// db object handling:
|
// db object handling:
|
||||||
$dbc = DB::connect($config['dsn'], TRUE);
|
$dbc = DB::connect($config['dsn'], TRUE);
|
||||||
$dbc->setFetchMode(DB_FETCHMODE_ASSOC);
|
$dbc->setFetchMode(DB_FETCHMODE_ASSOC);
|
||||||
|
@ -482,8 +482,8 @@ $spc =& SchedulerPhpClient::factory($dbc, $mdefs, $config);
|
||||||
// call of chosen function by name according to key values in $mdefs array:
|
// call of chosen function by name according to key values in $mdefs array:
|
||||||
// (for testing on storageServer XMLRPC I've changes confPrefix in
|
// (for testing on storageServer XMLRPC I've changes confPrefix in
|
||||||
// SchedulerPhpClient constructor from 'scheduler' to 'storage' value)
|
// SchedulerPhpClient constructor from 'scheduler' to 'storage' value)
|
||||||
$r = $spc->LoginGB('root', 'q'); var_dump($r);
|
#$r = $spc->LoginGB('root', 'q'); var_dump($r);
|
||||||
#$r = $spc->LogoutGB(''); var_dump($r);
|
#$r = $spc->LogoutGB(''); var_dump($r);
|
||||||
*/
|
$r = $spc->DisplayScheduleMethod($this->Base->sessid, '2005-01-01 00:00:00.000000', '2005-02-01 00:00:00.000000'); var_dump($r);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue