コード例 #1
0
ファイル: storage.php プロジェクト: hallnewman/webmail-lite
 /**
  * @param CContact $oContact
  * @return array | bool
  */
 public function GetContactGroupsIds($oContact)
 {
     $mGroupsIds = false;
     if ($this->oConnection->Execute($this->oCommandCreator->GetContactGroupsIds($oContact->IdUser, (int) $oContact->IdContact))) {
         $oRow = null;
         $mGroupsIds = array();
         while (false !== ($oRow = $this->oConnection->GetNextRecord())) {
             $mGroupsIds[] = (string) $oRow->id_group;
         }
     }
     return $mGroupsIds;
 }