示例#1
0
文件: Email.php 项目: Kervinou/OBM
 public static function decode(Vpdi_Property $EMAIL) {
   $em = new Vpdi_Vcard_Email($EMAIL->value());
   $em->addTypes($EMAIL->getParam('TYPE'));
   return $em;
 }
示例#2
0
文件: Vcard.php 项目: Kervinou/OBM
 /**
  * Adds an EMAIL property by passing a Vpdi_Vcard_Email object
  * 
  * @access public
  * @param Vpdi_Vcard_Email $email
  * @return void
  */
 public function addEmail(Vpdi_Vcard_Email $email) {
   $this->addProperty($email->encode());
 }