NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Reference based OOP and the auto complete functionality


Joined: 22 Sep 2009
Posts: 2
Reply with quote
Hello,

This may have already be asked/discussed but I was unable to find it. I am doing some OOP programming that uses referencing the object instead of creating a fresh inside a given object. ex:

//creating system object
--blah blah

//creating debug object
$this->debugger = New Debugger($this);

--repeat for each object.
//end

by passing in $this as a parameter, debugger can now access other objects' functionality via the system object. When I am programming, let say inside of Debugger object, I can get $this and userObject to do the fancy drop down box and auto complete. Beyond that, I have to remember the method names or go look them up. I am ok with that since I am a geek, but I am trying to find a tool that other people who do not want to remember can use. haha

if ($this->userObject->isLoggedIn()) { }

I am guessing that the whole computer sciency referencing the memory location of the system object (via the passing in of $this as a param) is the reason for the trouble.

I am sure that some of you are laughing at my lack of namespacing ^_^. If you have a suggestion for learning namespacing let me know ^_^ I am a self taught person...who has had a few CS classes so i can talk about referencing as if i actually knew what it was >_< D'uh

thank you!

James

_________________
>_
View user's profileFind all posts by cladironbeardSend private message
oops


Joined: 22 Sep 2009
Posts: 2
Reply with quote
I forgot to add a question. Is there a way around this referencing issue?

_________________
>_
View user's profileFind all posts by cladironbeardSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Try to search the forum for phpDoc or phpDocumentor... for example here.
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Reference based OOP and the auto complete functionality
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