/** * @param int $iIdAccount * * @return array */ public function getSocials($iIdAccount) { $aSocials = array(); if ($this->oConnection->Execute($this->oCommandCreator->getSocials((int) $iIdAccount))) { $oRow = null; while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $oSocial = new \CSocial(); $oSocial->InitByDbRow($oRow); $aSocials[] = $oSocial; } } $this->throwDbExceptionIfExist(); return $aSocials; }