如果我不敢做我想要的事情,我基本上需要在全球范围内储存以下信息,如果有人要求的话,那么他们就能够摆脱任何公共职能,而不必重新适应目前需要信息的职能。
public function savenewbusinesslead($tradingname, $companyname)
{
$this->tradingname = $tradingname;
$this->companyname = $companyname;
}
public function sendemail($email,$tradingname){
$this->email = $email;
$this->tradingname = $tradingname
}
我想做的是:
private function global($tradingname, $companyname){
$this->tradingname = $tradingname;
$this->companyname = $companyname;
}
public function savenewbusinesslead(){
print $this->global->tradingname;
}