Cheetah
Public Member Functions | Public Attributes | List of all members
ChBaseBrowse Class Reference
Inheritance diagram for ChBaseBrowse:
ChWsbBrowse ChWsbPageView ChTemplBrowse

Public Member Functions

 __construct (&$aFilteredSettings, &$aDisplaySettings, $sPageName)
 
 genBrowseLink ( $sName, $sValue, $sLink, $sIcon, $bImgDetect=true)
 
 getBlockCode_SettingsBlock ()
 
 genLinkLocation ( $sType, $sTypeValue)
 
 getBlockCode_SearchedMembersBlock ()
 
- Public Member Functions inherited from ChWsbBrowse
 __construct ($sPageName=null)
 
 getSexCount ( $PrimaryQuery)
 
 getAgesCount ( $PrimaryQuery)
 
 getCountriesCount ( $PrimaryQuery)
 
 _getGlobalStatistics ( $sSex='', $sAge='', $sCountry='', $sPhoto='', $sOnline='', $sType='')
 
 writeCache ( $aMembersInfo)
 
- Public Member Functions inherited from ChWsbPageView
 checkAjaxMode ()
 
 createCache ()
 
 load ()
 
 isLoaded ()
 
 getPageTitle ()
 
 getPageWidth ()
 
 getPageClass ()
 
 getViewerInfo ()
 
 forcePageWidth ($iWidth)
 
 gen ()
 
 genPageEmpty ()
 
 genOnlyBlock ( $iBlockID, $sDynamicType='tab')
 
 getCode ()
 
 genColumnsHeader ()
 
 genColumnsFooter ()
 
 genColumn ( $iColumn)
 
 getBlockCode_Topest ($iColumn)
 
 genColumnHeader ( $iColumn, $fColumnWidth)
 
 genColumnFooter ( $iColumn)
 
 genBlock ( $iBlockID, $aBlock, $bStatic=true, $sDynamicType='tab')
 
 _getBlockCaptionCode ($iBlockID, $aBlock, $aBlockCode, $bStatic=true, $sDynamicType='tab')
 
 _getBlockTopCode ($iBlockID, $aBlock, $aBlockCode, $bStatic=true, $sDynamicType='tab')
 
 _getBlockBottomCode ($iBlockID, $aBlock, $aBlockCode, $bStatic=true, $sDynamicType='tab')
 
 isBlockVisible ( $sVisible)
 
 getBlockBottomCode ( $iBlockID, $aLinks)
 
 getBlockCode_MemberStat ()
 
 getBlockCode_Custom ( $iBlockID, $sContent)
 
 getBlockCode_Echo ( $iBlockID, $sContent)
 
 getBlockCode_TrueText ( $iBlockID, $sContent)
 
 getBlockCode_Text ($iBlockID, $sContent)
 
 getBlockCode_XML ( $iBlockID, $sContent)
 
 getBlockCode_PHP ( $iBlockID, $sContent)
 
 getBlockCode_Code ( $iBlockID, $sContent)
 
 getBlockCode_RSS ( $iBlockID, $sContent)
 
 getBlockCode_LoginSection ($iBlockID, $sParams='')
 
 GenFormWrap ($sMainContent, $sPage, $sFunctionName, $iMaxThumbWidth, $iThumbsCnt)
 
 getBlocksCacheObject ()
 
 genBlocksCacheKey ($sId)
 

Public Attributes

 $bShowBothCoupleProfiles = true
 
 $aParameters
 
 $aAdditionalParameters
 
 $oSearchProfileTmpl
 
 $aDisplaySettings
 
 $_sSqlActive = "`Profiles`.`Status` = 'Active'"
 
- Public Attributes inherited from ChWsbBrowse
 $aMembersInfo
 
 $aDateBirthRange
 
 $aSexRange
 
 $aCountryRange
 
 $bPermalinkMode
 
 $sKeyName
 
 $iMemberOnlineTime
 
- Public Attributes inherited from ChWsbPageView
 $sPageName
 
 $aPage
 
 $sCode = ''
 
 $sWhoViews = 'non'
 
 $iMemberID = 0
 
 $bAjaxMode = false
 
 $aColumnsWidth = array ()
 
 $sTableName = 'sys_page_compose'
 
 $sCacheFile
 
 $oCacher = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbPageView
static getBlockCaptionItemCode ( $iBlockID, $aLinks)
 
static getBlockCaptionMenu ( $iBlockID, $aLinks)
 

Detailed Description

Definition at line 12 of file ChBaseBrowse.php.

Constructor & Destructor Documentation

◆ __construct()

ChBaseBrowse::__construct ( $aFilteredSettings,
$aDisplaySettings,
  $sPageName 
)

Class constructor ;

Parameters
:$aFilteredSettings(array) ; : sex (string) - set filter by sex, : age (string) - set filter by age, : country (string) - set filter by country, : photos_only (string) - set filter 'with photo only', : online_only (string) - set filter 'online only',
:$aDisplaySettings(array) ; : page (integer) - current page, : per_page (integer) - number ellements for per page, : sort (string) - sort parameters for SQL instructions, : mode (mode) - switch mode to extended and simple,
:$sPageName(string) - page name (need for page builder);

Reimplemented in ChTemplBrowse, ChTemplBrowse, and ChTemplBrowse.

Definition at line 47 of file ChBaseBrowse.php.

Member Function Documentation

◆ genBrowseLink()

ChBaseBrowse::genBrowseLink (   $sName,
  $sValue,
  $sLink,
  $sIcon,
  $bImgDetect = true 
)

Function will generate the browse link ;

Parameters
:$sName(string) - link's name;
:$sValue(string) - link's extended value;
:$sLink(string) - link's location;
:$sIco(string) - link's icon;
:$bImgDetect(boolean) - if isset this param img path will detect with "getTemplateIcon";
Returns
: Html presentation data;

Definition at line 113 of file ChBaseBrowse.php.

◆ genLinkLocation()

ChBaseBrowse::genLinkLocation (   $sType,
  $sTypeValue 
)

function will generate location for browse link ;

Parameters
:$sType(string) - type of link ;
:$sTypeValue(string) - value of link ;
Returns
: (string) location string ;

Definition at line 563 of file ChBaseBrowse.php.

◆ getBlockCode_SearchedMembersBlock()

ChBaseBrowse::getBlockCode_SearchedMembersBlock ( )

Function will find all needed members by some criteria ;

Returns
: Html presentation data ;

Definition at line 601 of file ChBaseBrowse.php.

◆ getBlockCode_SettingsBlock()

ChBaseBrowse::getBlockCode_SettingsBlock ( )

Function will generate block with members global statistics ;

Returns
: Html presentation data ;

Function will generate sex block ;

Parameters
:$rObject(resource) - link on created object;
:$sCurrentKey(string) - key name, need for search into cacje file;
Returns
: Html presentation data;

Function will generate the Age block ;

Parameters
:$oObject(object) - link on created object;
:$sCurrentKey(string) - key name, needed for search into cache file;
Returns
: Html presentation data;

Function will generate country block ;

Parameters
:$oObject(object) - link on created object;
:$sCurrentKey(string) - key name, need for search into cacje file;
Returns
: Html presentation data;

Function will generate js control box (toggle block) ;

Parameters
:$sCaption(string) - Block's caption ;
:$sBlockID(string) - Block's ID ;
:$bIsClosed(boolean) - if isset this param, that block will be hidde ;
Returns
: Html presentation data ;

Function will generate container for browse settings ;

Parameters
:$sCaption(string) - Block's caption ;
:$sContent(string) - Block's content ;
Returns
: Html presentation data ;

Definition at line 144 of file ChBaseBrowse.php.

Member Data Documentation

◆ $_sSqlActive

ChBaseBrowse::$_sSqlActive = "`Profiles`.`Status` = 'Active'"

Definition at line 28 of file ChBaseBrowse.php.

◆ $aAdditionalParameters

ChBaseBrowse::$aAdditionalParameters

Definition at line 19 of file ChBaseBrowse.php.

◆ $aDisplaySettings

ChBaseBrowse::$aDisplaySettings

Definition at line 25 of file ChBaseBrowse.php.

◆ $aParameters

ChBaseBrowse::$aParameters

Definition at line 17 of file ChBaseBrowse.php.

◆ $bShowBothCoupleProfiles

ChBaseBrowse::$bShowBothCoupleProfiles = true

Definition at line 14 of file ChBaseBrowse.php.

◆ $oSearchProfileTmpl

ChBaseBrowse::$oSearchProfileTmpl

Definition at line 22 of file ChBaseBrowse.php.


The documentation for this class was generated from the following file: