/**
  *  return assoc array of all frofile fields
  */
 function getProfileData()
 {
     global $aUser;
     global $dir;
     $oPDb = new BxDolProfileQuery();
     $sProfileCache = $dir['cache'] . 'user' . $this->_iProfileID . '.php';
     if (file_exists($sProfileCache) && is_file($sProfileCache)) {
         require_once $sProfileCache;
         $this->_aProfile = $aUser[$this->_iProfileID];
     } else {
         $this->_aProfile = $oPDb->getProfileDataById($this->_iProfileID);
     }
     //get couple data
     if ($this->_aProfile['Couple']) {
         $this->bCouple = true;
         $this->_iCoupleID = $this->_aProfile['Couple'];
         $sProfileCache = $dir['cache'] . 'user' . $this->_iCoupleID . '.php';
         if (file_exists($sProfileCache) && is_file($sProfileCache)) {
             require_once $sProfileCache;
             $this->_aCouple = $aUser[$this->_iCoupleID];
         } else {
             $this->_aCouple = $oPDb->getProfileDataById($this->_iCoupleID);
         }
     }
     return $this->_aProfile;
 }
示例#2
0
 /**
  *  return assoc array of all frofile fields
  */
 function getProfileData()
 {
     global $aUser;
     $bUseCacheSystem = getParam('enable_cache_system') == 'on' ? true : false;
     $oPDb = new BxDolProfileQuery();
     $sProfileCache = BX_DIRECTORY_PATH_CACHE . 'user' . $this->_iProfileID . '.php';
     if ($bUseCacheSystem && file_exists($sProfileCache) && is_file($sProfileCache)) {
         require_once $sProfileCache;
         $this->_aProfile = $aUser[$this->_iProfileID];
     } else {
         $this->_aProfile = $oPDb->getProfileDataById($this->_iProfileID);
     }
     //get couple data
     if ($this->_aProfile['Couple']) {
         $this->bCouple = true;
         $this->_iCoupleID = $this->_aProfile['Couple'];
         $sProfileCache = BX_DIRECTORY_PATH_CACHE . 'user' . $this->_iCoupleID . '.php';
         if ($bUseCacheSystem && file_exists($sProfileCache) && is_file($sProfileCache)) {
             require_once $sProfileCache;
             $this->_aCouple = $aUser[$this->_iCoupleID];
         } else {
             $this->_aCouple = $oPDb->getProfileDataById($this->_iCoupleID);
         }
     }
     return $this->_aProfile;
 }
 /**
  *  return assoc array of all frofile fields
  */
 function getProfileData()
 {
     $oPDb = new BxDolProfileQuery();
     $sProfileCache = $dir['cache'] . 'user' . $this->_iProfileID . '.php';
     if (file_exists($sProfileCache) && is_file($sProfileCache)) {
         require_once $sProfileCache;
         $this->_aProfile = $aUser[$this->_iProfileID];
     } else {
         $this->_aProfile = $oPDb->getProfileDataById($this->_iProfileID);
     }
     return $this->_aProfile;
 }