NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Question about code completion (type hint?)


Joined: 12 May 2007
Posts: 15
Reply with quote
I am coding in php5.

First, I include XML_RPC

Code:
require 'XML/RPC.php'; 


I declare a var as

private $client

I also have a private method getClient

Code:
   private function getClient()
   {
      $localClient=new XML_RPC_Client($this->xmlrpcPath, $this->cwlURL);
      $localClient->setCredentials ($this->appID, $this->appIDPassword);   
           
      return $localClient;
   }


In constructor, I have
Code:

   function __construct()
   {
      $this->appID='xxx';
      $this->appIDPassword='xx';
      $this->xmlrpcPath='/auth/rpc';
      $this->cwlURL='xxx;
      $this->sessionTicket=$_GET['ticket'];
      $this->params=array( new XML_RPC_Value($this->sessionTicket, 'string'));
      $this->client=$this->getClient();
   }


But when I type $this->client, Phped does not give me type hints for the method $client shall have ($client is a XML_RPC_Client object, it shall has methods like send(), setCredential(), etc)

Any idea?

Thanks,
View user's profileFind all posts by tiger0516Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
With latest build, your sample works fine for me:


if it does not show code completion, there should be an error indicating what's up.
Probably, file defining XML_RPC_Client class is not in the project. In this case you have to add it's directory to the Code Insight Includes list. See project properties.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Question about code completion (type hint?)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic