function getCalendar() { $oProfile = new BxBaseProfileGenerator(getLoggedId()); $mSearchRes = $oProfile->GenProfilesCalendarBlock(); list($sResults, $aDBTopMenu, $sPagination, $sTopFilter) = $mSearchRes; return DesignBoxContent(_t('_People_Calendar'), $sResults, 1); }
function __construct($iProfileId, $iViewerId = 0) { BxBaseProfileGenerator::__construct((int) $iProfileId); $this->_iViewerId = $iViewerId; }
function BxDolXMLRPCProfileView($iProfileId, $iViewerId = 0) { BxBaseProfileGenerator::BxBaseProfileGenerator((int) $iProfileId); $this->_iViewerId = $iViewerId; }
function getBlockCode_Results($iBlockID) { //collect inputs $aRequestParams = $this->oPF->collectSearchRequestParams(); if (isset($_REQUEST['Tags']) and trim($_REQUEST['Tags'])) { $aRequestParams['Tags'] = trim(process_pass_data($_REQUEST['Tags'])); } if (isset($_REQUEST['distance']) and (int) $_REQUEST['distance']) { $aRequestParams['distance'] = (int) $_REQUEST['distance']; } // start page generation $oProfile = new BxBaseProfileGenerator(getLoggedId()); switch ($_REQUEST['show']) { case 'match': list($aDBTopMenu, $sResults) = $this->showMatchProfiles($iBlockID); break; case 'calendar': list($sResults, $aDBTopMenu, $sPagination, $sTopFilter) = $oProfile->GenProfilesCalendarBlock(); break; default: $this->collectFilteredSettings(); list($sResults, $aDBTopMenu, $sPagination, $sTopFilter) = $oProfile->GenSearchResultBlock($this->oPF->aBlocks, $aRequestParams, $this->aFilterSortSettings, 'search.php'); break; } return array($sTopFilter . $sResults . $sPagination, $aDBTopMenu, array(), $this->getTitle()); }
function BxDolXMLRPCProfileView($iProfileId) { BxBaseProfileGenerator::BxBaseProfileGenerator((int) $iProfileId); }
function _getProfilesByFilter($sFilter) { $aGetParams = unserialize(base64_decode(str_replace('-slash-', '/', $sFilter))); if ($aGetParams && is_array($aGetParams)) { $aGetParams = $_REQUEST = $_GET = array_merge($_REQUEST, $aGetParams); } bx_import('BxDolProfileFields'); $oPF = new BxDolProfileFields(9); $aRequestParams = $oPF->collectSearchRequestParams(); bx_import('BxTemplProfileView'); $oProfileGenerator = new BxBaseProfileGenerator(getLoggedId()); list($aWhere, $sJoin, $sPossibleOrder) = $oProfileGenerator->GenSqlConditions($oPF->aBlocks, $aRequestParams); $iPage = isset($aGetParams['page']) && (int) $aGetParams['page'] > 0 ? (int) $aGetParams['page'] : 1; $iPerPage = isset($aGetParams['per_page']) && (int) $aGetParams['per_page'] > 0 ? (int) $aGetParams['per_page'] : getParam('bx_map_per_page'); $iStart = ($iPage - 1) * $iPerPage; $sQuery = 'SELECT DISTINCT `Profiles`.`ID`, `Profiles`.`Avatar`, `Profiles`.`NickName`, `m`.`id`, `m`.`lat`, `m`.`lng` FROM `Profiles` INNER JOIN `' . $this->_oDb->_sPrefix . 'profiles` AS `m` ON (`Profiles`.`ID` = `m`.`id`) ' . $sJoin . ' WHERE ' . implode(' AND ', $aWhere) . ' AND `m`.`failed` = 0 ' . $sPossibleOrder . " \n LIMIT {$iStart}, {$iPerPage}"; // ID is ambiguous $sQuery = str_replace(' `ID`', ' `Profiles`.`ID`', $sQuery); $aProfiles = $GLOBALS['MySQL']->getAll($sQuery); return $aProfiles; }