protected function applyTextMarker()
    {
        $model = $this->getModel();

        $textKey = $model->getTextFilter();
        $filter  = $model->getFilter();

        if (isset($filter[$textKey])) {
            $searchText = $filter[$textKey];
            // \MUtil_Echo::r('[' . $searchText . ']');
            $marker = new \MUtil_Html_Marker($model->getTextSearches($searchText), 'strong', 'UTF-8');
            foreach ($model->getItemNames() as $name) {
                if ($model->get($name, 'label')) {
                    $model->set($name, 'markCallback', array($marker, 'mark'));
                }
            }
        }
    }
protected function applyTextMarker()
    {
        $model = $this->getModel();

        $textKey = $model->getTextFilter();
        $filter  = $model->getFilter();

        if (isset($filter[$textKey])) {
            $searchText = $filter[$textKey];
            // \MUtil_Echo::r('[' . $searchText . ']');
            $marker = new \MUtil_Html_Marker($model->getTextSearches($searchText), 'strong', 'UTF-8');
            foreach ($model->getItemNames() as $name) {
                if ($model->get($name, 'label')) {
                    $model->set($name, 'markCallback', array($marker, 'mark'));
                }
            }
        }
    }
protected function applyTextMarker ( ) { $ model = $ this -> getModel ( ) ; $ textKey = $ model -> getTextFilter ( ) ; $ filter = $ model -> getFilter ( ) ; if ( isset ( $ filter [ $ textKey ] ) ) { $ searchText = $ filter [ $ textKey ] ; // \MUtil_Echo::r('[' . $searchText . ']'); $ marker = new \ MUtil_Html_Marker ( $ model -> getTextSearches ( $ searchText ) , 'strong' , 'UTF-8' ) ; foreach ( $ model -> getItemNames ( ) as $ name ) { if ( $ model -> get ( $ name , 'label' ) ) { $ model -> set ( $ name , 'markCallback' , array ( $ marker , 'mark' ) ) ; } } } }
Make sure generic search text results are marked

@return void
Make sure generic search text results are marked