function execute()
 {
     $user_id = (int) Request::post('id');
     $login = ConnectionHelper::userLogin();
     connectionUserContactModel::create()->addUser($login['id'], $user_id);
     connectionUserEventModel::create()->add(array('type' => connectionUserEventModel::TYPE_INVITE_CHAT, 'user' => (int) $user_id, 'from' => (int) $login['id']));
     return 'success';
 }
 public function getContact($user)
 {
     $contact = connectionUserContactModel::create()->getUserContact($user);
     $data = array();
     foreach ($contact as $user) {
         $data[] = $this->getInfo($user['contact']);
     }
     return $data;
 }