controllers/SearchController.php
/**
     * Generic method for performing all search actions
     * 
     * @param string $searchStr
     * @return Ambigous <boolean, mixed>
     */
Generic method for performing all search actions

@param string $searchStr
@return Ambigous 
Generic method for performing all search actions @param string $searchStr @return Ambigous
private function search($searchStr) {
        $returnSet = array();
        $searchStr = trim($searchStr);
        $searchStr = preg_replace('!\s+!', ' ', $searchStr);
        if (!$this->isTagBasedSearch($searchStr)) {
            $sortedResults = $this->performSimpleSearch($searchStr);
        } else {
            $sortedResults = $this->performTagBasedSearch($searchStr);
        }
        return $sortedResults;
    }
private function search ( $ searchStr ) { $ returnSet = array ( ) ; $ searchStr = trim ( $ searchStr ) ; $ searchStr = preg_replace ( '!\s+!' , ' ' , $ searchStr ) ; if ( ! $ this -> isTagBasedSearch ( $ searchStr ) ) { $ sortedResults = $ this -> performSimpleSearch ( $ searchStr ) ; } else { $ sortedResults = $ this -> performTagBasedSearch ( $ searchStr ) ; } return $ sortedResults ; }
Generic method for performing all search actions
Generic method for performing all search actions