public function getTitle()
    {
        // configure the link
        $linkconf = $this->getResultLinkConfiguration();

        list($type) = explode(':', $this->row['type']);
        switch ($type) {
            case 'file':
                // if we use FAL, see if we have a title in the metadata
                if ($this->row['orig_uid'] && ($fileObject = SearchHelper::getFile($this->row['orig_uid']))) {
                    $metadata = $fileObject->_getMetaData();
                    $linktext = ($metadata['title'] ? $metadata['title'] : $this->row['title']);
                } else {
                    $linktext = $this->row['title'];
                }
                break;
            default:
                $linktext = $this->row['title'];
                break;
        }

        // clean title
        $linktext = htmlspecialchars(strip_tags($linktext));

        // highlight hits in result title?
        if ($this->conf['highlightSword'] && count($this->pObj->swords)) {
            $linktext = $this->highlightArrayOfWordsInContent($this->pObj->swords, $linktext);
        }
        return $this->cObj->typoLink($linktext, $linkconf);
    }
public function getTitle()
    {
        // configure the link
        $linkconf = $this->getResultLinkConfiguration();

        list($type) = explode(':', $this->row['type']);
        switch ($type) {
            case 'file':
                // if we use FAL, see if we have a title in the metadata
                if ($this->row['orig_uid'] && ($fileObject = SearchHelper::getFile($this->row['orig_uid']))) {
                    $metadata = $fileObject->_getMetaData();
                    $linktext = ($metadata['title'] ? $metadata['title'] : $this->row['title']);
                } else {
                    $linktext = $this->row['title'];
                }
                break;
            default:
                $linktext = $this->row['title'];
                break;
        }

        // clean title
        $linktext = htmlspecialchars(strip_tags($linktext));

        // highlight hits in result title?
        if ($this->conf['highlightSword'] && count($this->pObj->swords)) {
            $linktext = $this->highlightArrayOfWordsInContent($this->pObj->swords, $linktext);
        }
        return $this->cObj->typoLink($linktext, $linkconf);
    }
public function getTitle ( ) { // configure the link $ linkconf = $ this -> getResultLinkConfiguration ( ) ; list ( $ type ) = explode ( ':' , $ this -> row [ 'type' ] ) ; switch ( $ type ) { case 'file' : // if we use FAL, see if we have a title in the metadata if ( $ this -> row [ 'orig_uid' ] && ( $ fileObject = SearchHelper :: getFile ( $ this -> row [ 'orig_uid' ] ) ) ) { $ metadata = $ fileObject -> _getMetaData ( ) ; $ linktext = ( $ metadata [ 'title' ] ? $ metadata [ 'title' ] : $ this -> row [ 'title' ] ) ; } else { $ linktext = $ this -> row [ 'title' ] ; } break ; default : $ linktext = $ this -> row [ 'title' ] ; break ; } // clean title $ linktext = htmlspecialchars ( strip_tags ( $ linktext ) ) ; // highlight hits in result title? if ( $ this -> conf [ 'highlightSword' ] && count ( $ this -> pObj -> swords ) ) { $ linktext = $ this -> highlightArrayOfWordsInContent ( $ this -> pObj -> swords , $ linktext ) ; } return $ this -> cObj -> typoLink ( $ linktext , $ linkconf ) ; }
get title for result row
@return string The linked result title
get title for result row