Cheetah
Public Member Functions | Public Attributes | List of all members
ChBlogsSearchUnit Class Reference
Inheritance diagram for ChBlogsSearchUnit:
ChTemplSearchResultText ChBaseSearchResultText ChBaseSearchResult ChWsbSearchResult

Public Member Functions

 __construct ($oBlogObject=null)
 
 getBlogsMain ()
 
 addCustomParts ()
 
 PerformObligatoryInit (&$oBlogsModule, $iPostViewType=2, $sMobileWrapper=false)
 
 getCurrentUrl ($sType, $iId, $sUri, $aOwner='')
 
 displaySearchBox ($sCode, $sPaginate='', $bAdminBox=false)
 
 displaySearchUnit ($aResSQL)
 
 setSorting ()
 
 getAlterOrder ()
 
 showPagination ($aParams=array())
 
 showPagination3 ($bAdmin=false)
 
 showPagination2 ($bAdmin=false, $sOverrideViewAllUrl=false, $bShort=true)
 
 showPaginationAjax ($sContainerId, $sBaseUrl=false)
 
 _getPseud ()
 
 _wrapMobileUnit ($sContent, $iPostID, $oMain)
 
- Public Member Functions inherited from ChTemplSearchResultText
 __construct ()
 
 __construct ()
 
 __construct ()
 
- Public Member Functions inherited from ChBaseSearchResult
 isPermalinkEnabled ()
 
 displayResultBlock ()
 
 _transformData ($aUnit, $sTempl, $sCssHeader='')
 
 getLinkAddByPrams ($aExclude=array())
 
 clearFilters ($aPassParams=array(), $aPassJoins=array())
 
 fillFilters ($aParams)
 
 getTopMenu ($aExclude=array())
 
 getBottomMenu ($sAllLinkType='browseAll', $iId=0, $sUri='', $aExclude=array(), $bPgnSim=TRUE)
 
 getBrowseBlock ($aParams, $aCustom=array(), $sMainUrl='', $bClearJoins=true)
 
 serviceGetBrowseBlock ($aParams, $sMainUrl='', $aCustom=array())
 
 serviceGetAllCount ($aFilter, $aJoin=array())
 
- Public Member Functions inherited from ChWsbSearchResult
 processing ()
 
 rss ()
 
 getRssUnitLink (&$a)
 
 getRssUnitImage (&$a, $sField)
 
 setFieldUnit ($sFieldName, $sTableName, $sOperator='', $bRenameMode=true)
 
 displaySearchBox ($sCode, $sPaginate='')
 
 getSearchData ()
 
 getJoins ($bRenameMode=true)
 
 getSearchDataByParams ($aParams='')
 
 setConditionParams ()
 
 getCount ()
 
 getRestriction ()
 
 getLimit ()
 
 getSorting ($sSortType='last')
 
 setPaginate ()
 
 getSearchFieldsCond ($aFields, $sKeyword, $sPseud='')
 
 getMultiValues ($aValues)
 
 getRatePart ()
 

Public Attributes

 $sHomePath
 
 $sHomeUrl
 
 $iPostViewType
 
 $sMobileWrapper = false
 
 $bAdminMode
 
 $bShowCheckboxes
 
 $aCurrent
 
 $aPermalinks
 
 $iIconSize
 
 $iThumbSize
 
 $iBigThumbSize
 
 $iImgSize
 
 $sSearchedTag
 
- Public Attributes inherited from ChBaseSearchResult
 $aPermalinks
 
 $aConstants
 
- Public Attributes inherited from ChWsbSearchResult
 $aCurrent
 
 $aPseud
 
 $id
 
 $iRate = 1
 
 $oRate = null
 
 $bCustomParts = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ChBaseSearchResult
static showAdminActionsPanel ($sWrapperId, $aButtons, $sCheckboxName='entry', $bSelectAll=true, $bSelectAllChecked=false, $sCustomHtml='')
 
static showAdminFilterPanel ($sFilterValue, $sInputId='filter_input_id', $sCheckboxId='filter_checkbox_id', $sFilterName='filter', $sOnApply='')
 

Detailed Description

Definition at line 19 of file ChBlogsSearchUnit.php.

Constructor & Destructor Documentation

◆ __construct()

ChBlogsSearchUnit::__construct (   $oBlogObject = null)

Definition at line 68 of file ChBlogsSearchUnit.php.

Member Function Documentation

◆ _getPseud()

ChBlogsSearchUnit::_getPseud ( )

Reimplemented from ChWsbSearchResult.

Definition at line 451 of file ChBlogsSearchUnit.php.

◆ _wrapMobileUnit()

ChBlogsSearchUnit::_wrapMobileUnit (   $sContent,
  $iPostID,
  $oMain 
)

Definition at line 468 of file ChBlogsSearchUnit.php.

◆ addCustomParts()

ChBlogsSearchUnit::addCustomParts ( )

Reimplemented from ChWsbSearchResult.

Definition at line 142 of file ChBlogsSearchUnit.php.

◆ displaySearchBox()

ChBlogsSearchUnit::displaySearchBox (   $sCode,
  $sPaginate = '',
  $bAdminBox = false 
)

Reimplemented from ChBaseSearchResult.

Definition at line 179 of file ChBlogsSearchUnit.php.

◆ displaySearchUnit()

ChBlogsSearchUnit::displaySearchUnit (   $aResSQL)

Reimplemented from ChBaseSearchResultText.

Definition at line 187 of file ChBlogsSearchUnit.php.

◆ getAlterOrder()

ChBlogsSearchUnit::getAlterOrder ( )

Reimplemented from ChWsbSearchResult.

Definition at line 366 of file ChBlogsSearchUnit.php.

◆ getBlogsMain()

ChBlogsSearchUnit::getBlogsMain ( )

Definition at line 137 of file ChBlogsSearchUnit.php.

◆ getCurrentUrl()

ChBlogsSearchUnit::getCurrentUrl (   $sType,
  $iId,
  $sUri,
  $aOwner = '' 
)

Reimplemented from ChBaseSearchResult.

Definition at line 161 of file ChBlogsSearchUnit.php.

◆ PerformObligatoryInit()

ChBlogsSearchUnit::PerformObligatoryInit ( $oBlogsModule,
  $iPostViewType = 2,
  $sMobileWrapper = false 
)

Definition at line 148 of file ChBlogsSearchUnit.php.

◆ setSorting()

ChBlogsSearchUnit::setSorting ( )

Reimplemented from ChWsbSearchResult.

Definition at line 358 of file ChBlogsSearchUnit.php.

◆ showPagination()

ChBlogsSearchUnit::showPagination (   $aParams = array())

Reimplemented from ChBaseSearchResult.

Definition at line 376 of file ChBlogsSearchUnit.php.

◆ showPagination2()

ChBlogsSearchUnit::showPagination2 (   $bAdmin = false,
  $sOverrideViewAllUrl = false,
  $bShort = true 
)

Definition at line 408 of file ChBlogsSearchUnit.php.

◆ showPagination3()

ChBlogsSearchUnit::showPagination3 (   $bAdmin = false)

Definition at line 392 of file ChBlogsSearchUnit.php.

◆ showPaginationAjax()

ChBlogsSearchUnit::showPaginationAjax (   $sContainerId,
  $sBaseUrl = false 
)

Definition at line 430 of file ChBlogsSearchUnit.php.

Member Data Documentation

◆ $aCurrent

ChBlogsSearchUnit::$aCurrent
Initial value:
= array(
'name' => 'blogposts',
'title' => '_ch_blog_Blogs',
'table' => 'ch_blogs_posts',
'ownFields' => array('PostID', 'PostCaption', 'PostUri', 'PostDate', 'PostText', 'Tags', 'PostPhoto','PostStatus', 'Rate', 'RateCount', 'CommentsCount', 'Categories', 'Views'),
'searchFields' => array('PostCaption', 'PostText', 'Tags'),
'join' => array(
'profile' => array(
'type' => 'left',
'table' => 'Profiles',
'mainField' => 'OwnerID',
'onField' => 'ID',
'joinFields' => array('NickName')
)
),
'restriction' => array(
'activeStatus' => array('value'=>'approval', 'field'=>'PostStatus', 'operator'=>'='),
'featuredStatus' => array('value'=>'', 'field'=>'Featured', 'operator'=>'='),
'owner' => array('value'=>'', 'field'=>'OwnerID', 'operator'=>'='),
'tag' => array('value'=>'', 'field'=>'Tags', 'operator'=>'like'),
'tag2' => array('value'=>'', 'field'=>'Tags', 'operator'=>'against', 'paramName'=>'tag'),
'id'=> array('value'=>'', 'field'=>'PostID', 'operator'=>'='),
'category_uri'=> array('value'=>'', 'field'=>'Categories', 'operator'=>'against', 'paramName'=>'uri'),
'allow_view' => array('value'=>'', 'field'=>'allowView', 'operator'=>'in', 'table'=> 'ch_blogs_posts'),
),
'paginate' => array('perPage' => 4, 'page' => 1, 'totalNum' => 10, 'totalPages' => 1),
'sorting' => 'last'
)

Definition at line 29 of file ChBlogsSearchUnit.php.

◆ $aPermalinks

ChBlogsSearchUnit::$aPermalinks

Definition at line 58 of file ChBlogsSearchUnit.php.

◆ $bAdminMode

ChBlogsSearchUnit::$bAdminMode

Definition at line 26 of file ChBlogsSearchUnit.php.

◆ $bShowCheckboxes

ChBlogsSearchUnit::$bShowCheckboxes

Definition at line 27 of file ChBlogsSearchUnit.php.

◆ $iBigThumbSize

ChBlogsSearchUnit::$iBigThumbSize

Definition at line 63 of file ChBlogsSearchUnit.php.

◆ $iIconSize

ChBlogsSearchUnit::$iIconSize

Definition at line 61 of file ChBlogsSearchUnit.php.

◆ $iImgSize

ChBlogsSearchUnit::$iImgSize

Definition at line 64 of file ChBlogsSearchUnit.php.

◆ $iPostViewType

ChBlogsSearchUnit::$iPostViewType

Definition at line 23 of file ChBlogsSearchUnit.php.

◆ $iThumbSize

ChBlogsSearchUnit::$iThumbSize

Definition at line 62 of file ChBlogsSearchUnit.php.

◆ $sHomePath

ChBlogsSearchUnit::$sHomePath

Definition at line 21 of file ChBlogsSearchUnit.php.

◆ $sHomeUrl

ChBlogsSearchUnit::$sHomeUrl

Definition at line 22 of file ChBlogsSearchUnit.php.

◆ $sMobileWrapper

ChBlogsSearchUnit::$sMobileWrapper = false

Definition at line 24 of file ChBlogsSearchUnit.php.

◆ $sSearchedTag

ChBlogsSearchUnit::$sSearchedTag

Definition at line 66 of file ChBlogsSearchUnit.php.


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