Go to the documentation of this file.
8 require_once(CH_DIRECTORY_PATH_BASE .
'scripts/ChBaseSearchResult.php');
15 parent::__construct();
18 $this->aConstants[
'linksTempl'] = $this->
isPermalinkEnabled() ? $this->aPermalinks[
'enabled'] : $this->aPermalinks[
'disabled'];
23 $sFileLink = $this->
getCurrentUrl(
'file', $aData[
'id'], $aData[
'uri']);
24 $sCategoryLink = $this->
getCurrentUrl(
'category', $aData[
'categoryId'], $aData[
'categoryUri'], array(
'ownerId'=>$aData[
'ownerId'],
'ownerName'=>$aData[
'ownerName']));
30 $aUnit[
'category'] = isset($aData[
'categoryName']) ?
_t(
'_In') .
' <a href="'.$sCategoryLink.
'">'.$aData[
'categoryName'].
'</a>' :
'';
33 $aUnit[
'comment'] = isset($aData[
'countComment']) ?
'<a href="'.$sFileLink.
'">'.$aData[
'countComment'].
' '.
_t(
'_comments').
'</a>' :
'';
36 if (isset($aData[
'tag'])) {
37 $aTags = explode(
',', $aData[
'tag']);
38 foreach ($aTags
as $sValue) {
40 $aUnit[
'tag'] .=
'<a href="'.$sLink.
'">'.$sValue.
'</a>, ';
46 if (!is_null($this->oRate) && $this->oRate->isEnabled())
47 $aUnit[
'rate'] = $this->oRate->getJustVotingElement(0, 0, $aData[
'voting_rate']);
52 $aUnit[
'title'] = isset($aData[
'title']) ?
'<a href="'.$sFileLink.
'">'.$aData[
'title'].
'</a>':
'';
58 $aUnit[
'from'] = $aData[
'ownerId'] !=0 ?
_t(
'_By').
': <a href="'.
getProfileLink($aData[
'ownerId']).
'">'.$aData[
'ownerName'].
'</a>':
_t(
'_By').
': '.
_t(
'_Admin');
61 $aUnit[
'view'] = isset($aData[
'view']) ?
_t(
"_Views").
': '.$aData[
'view'] :
'';
66 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'browseTextUnit.html',
$aUnit, array(
'{',
'}'));
defineTimeInterval($iTime, $bAutoDateConvert=true, $bShort=false)
get_member_icon($ID, $float='none', $bGenProfLink=false)
ch_import($sClassName, $aModule=array())
getCurrentUrl($sType, $iId, $sUri, $aOwner='')
process_html_output($text, $maxwordlen=100)
strmaxtextlen($sInput, $iMaxLen=60)
_t($key, $arg0="", $arg1="", $arg2="")
getProfileLink( $iID, $sLinkAdd='')
displaySearchUnit($aData)