Jump to content

Getting vars inside a class...


aximbigfan

Recommended Posts

I have this class:

class regSys
{

//Set connect vars to private
private $host;
private $pass;
private $path;
private $SETUP;

public function __construct($host, $pass, $path)
{
$this->host   = $host;
$this->pass   = $pass;
$this->path   = $path;
}

//Main RemoteReg function
public function remotereg($mode, $cat=null, $key=null, $val=null, $args=null )
{
<some code>
}
}

 

And I want to get these vars inside the "remotereg" function:

host

pass

path

 

How can I do this?

 

Thanks,

Chris

Link to comment
https://forums.phpfreaks.com/topic/104494-getting-vars-inside-a-class/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.