/** * @param int $iIdTenant * * @return array | false */ public function GetSocials($iIdTenant) { $aSocials = false; if ($this->oConnection->Execute($this->oCommandCreator->GetSocials($iIdTenant))) { $oRow = null; $aSocials = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $oSocial = new CTenantSocials(); $oSocial->InitByDbRow($oRow); $aSocials[strtolower($oSocial->SocialName)] = $oSocial; } } $this->oConnection->FreeResult(); $this->throwDbExceptionIfExist(); return $aSocials; }