type = $type; $this->emailaddress = $emailaddress; // no escape, normally not needed anyway } /** * Creates the vCard output for a single email item. */ public function text() { if ( $this->type == "" ) { $this->type = "INTERNET"; } return "EMAIL;TYPE=$this->type:$this->emailaddress\r\n"; } }