/** * @return void */ public function parseRequestParams() { if ( isset( $_REQUEST['ex'] ) && !empty( $_REQUEST['ex'] ) ) $this->excludeIds = explode( '-', $_REQUEST['ex'] ); parent::parseRequestParams(); }
/** * @return void */ public function parseRequestParams() { if ( isset( $_REQUEST['ex'] ) && !empty( $_REQUEST['ex'] ) ) $this->excludeIds = explode( '-', $_REQUEST['ex'] ); if ( isset( $_REQUEST['last'] ) && $_REQUEST['last'] == 1 ) $this->contentList->displayLast = true; parent::parseRequestParams(); }
protected function getEditorsChoice() { $result = array(); $editorsChoiceTaxonomyCategory = $this->getCustomParameter('EditorsChoiceTaxonomyCategory'); $editorsChoiceTaxonomyValue = $this->getCustomParameter('EditorsChoiceTaxonomyValue'); $editorsChoiceLimit = $this->getCustomParameter('EditorsChoiceLimit') ? $this->getCustomParameter('EditorsChoiceLimit') : 1; $languages = $this->applicationLocalized()->getPublisherLanguages(); if ($editorsChoiceTaxonomyCategory == null || $editorsChoiceTaxonomyValue == null) { return $result; } $result = $this->resultHandler->getEditorsChoiceArticles($editorsChoiceTaxonomyCategory, $editorsChoiceTaxonomyValue, $editorsChoiceLimit, $languages); return $result; }
public function parseSolrHighlights( &$solrResult ) { $highlights = parent::parseSolrHighlights( $solrResult ); $found = true; if( !$highlights ) { $highlights = array_fill( 0, count($solrResult['highlighting']), array( 'title' => false, 'desc' => false, 'source' => false ) ); $found = false; } $k = 0; foreach( $solrResult['highlighting'] as $arr ) { $hlSource = self::HIGHLIGHT_SOURCE_TEXT; if( empty( $highlights[$k]['desc'] ) && isset($arr['attr_download_ressource_content_mt']) ) { $found = true; $highlights[$k]['desc'] = '(…) '.$arr['attr_download_ressource_content_mt'][0].' (…)'; $hlSource = self::HIGHLIGHT_SOURCE_PDF; } $highlights[$k]['source'] = ezpI18n::tr( 'merck', 'HIGHLIGHT_SOURCE_'.$hlSource ); $k++; } return $found ? $highlights : false; }