public function getContactDetails() {
$values=array();
//var_dump($this->data);
foreach($this->data as $key=>$type){
$label=@explode('_type_',$key);
if(count($label)<2)
continue;
$label=@implode('_value_',$label);
$value=$this->data[$label];
$values[$type]=$value;
/*if($value=='http://axschema.org/contact/email'){
if(@$this->data[$label])
return $this->data[$label];
}*/
}
//return $this->data['openid_ext1_value_contact_email'];
$values['email']=$values['http://axschema.org/contact/email'];
$values['name']=$values['http://axschema.org/namePerson/friendly'];
if(!$values['name'])
$values['name']=$values['http://axschema.org/namePerson'];
if(!$values['name'])
$values['name']=$values['http://axschema.org/contact/email'];
return $values;
return 'unknown-email';
}