Пример #1
0
 /**
  * 
  *
  * @access public
  * @param void
  * @return string
  * @deprecated
  */
 function getEmail($type = null)
 {
     if (is_null($type)) {
         if ($this->getIsCompany()) {
             $type = 'work';
         } else {
             $type = $this->getUserType() > 0 ? 'user' : 'personal';
         }
     }
     $email_type_id = EmailTypes::getEmailTypeId($type);
     return ContactEmails::getContactMainEmail($this, $email_type_id);
 }