type = $type; // may be a vCard value list using ",", no escaping $this->telnumber = vCard::escape( $telnumber ); // escape to be sure } /** * Creates the vCard output for a single telephone item. */ public function text() { if ( $this->type == "" ) { $this->type = "WORK"; } return "TEL;TYPE=$this->type:$this->telnumber\r\n"; } }