NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Completion calling objects


Joined: 13 Feb 2008
Posts: 32
Reply with quote
class product_pricing
{

function tax()
{
print_r($this->object->page_type);
}
function __construct(product $obj1)
{
$this->object = $obj;

}
}

Given about code, within the construct, code completion works fine say $obj->something (something would show in code completion). But if any where else in the class I would do $this->object, code completion is not working. Am I doing something wrong, do I need to define $this->object to PHPED for completion to work?
View user's profileFind all posts by linchatSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
normally all the properties should be defined like below

Code:
class product_pricing {
/**
 * @var product
 */
  public $publicprop;

/**
 * @var order
 */
  private $privateprop;
...

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Code Completion calling objects
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