|
|
| <prev next> |
Choosing A Webhost: |
Re: Check credentials with POGI: msg#00010cms.opengroupware.xmlrpc.devel
> here's another question concerning POGI. When I try to connect to my > OpenGroupware via xmlrpcd, how do I check if the connection was successfull? > At the moment I check if the string length of $server->getCurrentActorLogin() > is (> 0). I think this isn't the best way?! The version on my local drive has a OGoServer:isLoggedIn method. function isLoggedIn() { if($this->currentActor != null) return true; else return false; } OGoServer::login also returns a bool, by calling the above method. function login($_username, $_password) { $this->client->setCredentials(trim($_username), trim($_password)); if (!isset($this->managers['account'])) $this->managers['account'] = new OGoAccountManager($this); $this->currentActor = $this->managers['account']->getCurrentActor(); return $this->isLoggedIn(); } This works at least for my "MinyOGo" project - which is a very lite web interface to OGo for use with devices with very limited displays. -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Check credentials with POGI, Helge Hess |
|---|---|
| Next by Date: | Re: Check credentials with POGI, Adam Tauno Williams |
| Previous by Thread: | Re: Check credentials with POGI, Adam Tauno Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |