Exemplo n.º 1
0
 /**
  * @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;
 }