예제 #1
0
파일: User.php 프로젝트: junjinZ/wealthbot
 /**
  * Is client has status prospect
  *
  * @return bool
  */
 public function hasStatusProspect()
 {
     if ($this->hasRole('ROLE_CLIENT')) {
         return $this->profile->hasStatusProspect();
     }
     return false;
 }
예제 #2
0
파일: User.php 프로젝트: junjinZ/wealthbot
 /**
  * Get activity message
  *
  * @return string
  */
 public function getActivityMessage()
 {
     $message = null;
     if ($this->hasRole('ROLE_CLIENT') && $this->profile && $this->profile->hasStatusProspect()) {
         $message = 'Prospect Registered';
     }
     return $message;
 }