예제 #1
0
 public function getSearchUserData()
 {
     if (!empty($this->from_id) && is_int($this->from_id)) {
         $profile = Profile::findOne(['user_id' => $this->from_id]);
         return ['id' => $this->from_id, 'name' => "{$profile->name} {$profile->surname}"];
     }
     return;
 }