Search found 4 matches

by Syekiya
Wed Jun 02, 2010 12:01 pm
Forum: PHP - Code
Topic: Call Functions Of Remote Class (OOP, CLI)
Replies: 7
Views: 954

Re: Call Functions Of Remote Class (OOP, CLI)

Ok, I've noticed that I left out some details... What I'm essential trying to do is have one object call a function of another object... What my situation is: I have one object (IRC), another object (Module System), and then an object for each Module loaded in the module system... I need to have the...
by Syekiya
Tue Jun 01, 2010 7:41 pm
Forum: PHP - Code
Topic: Call Functions Of Remote Class (OOP, CLI)
Replies: 7
Views: 954

Re: Call Functions Of Remote Class (OOP, CLI)

IRC:: does have a property. It is set in: public function Connect() { global $Bot_Info; echo("Attempting to connect to $this->SERVER on port: $this->PORT as SB_Branden\r\n"); $this->Connection = fsockopen($this->SERVER, $this->PORT); // Connects to the IRC Server $this->Write("USER SB...
by Syekiya
Tue Jun 01, 2010 6:31 pm
Forum: PHP - Code
Topic: Call Functions Of Remote Class (OOP, CLI)
Replies: 7
Views: 954

Re: Call Functions Of Remote Class (OOP, CLI)

Is there a way to link these classes without making Module an extended class?
by Syekiya
Tue Jun 01, 2010 4:52 pm
Forum: PHP - Code
Topic: Call Functions Of Remote Class (OOP, CLI)
Replies: 7
Views: 954

Call Functions Of Remote Class (OOP, CLI)

I'm not really sure how to explain my situation, but I'll do my best... As it stands, I'm new to OOP. What I have is the following... Class IRC Class ModuleSystem Class Core extends ModuleSystem I have the following function inside of class IRC public function Write($Data) { fwrite($this->Connection...