public function setSearchTerm($term)
    {
        if (!empty($term)) {
            $this->showTree = false;
        }

        $this->searchTerm = $term;
    }
public function setSearchTerm($term)
    {
        if (!empty($term)) {
            $this->showTree = false;
        }

        $this->searchTerm = $term;
    }
public function setSearchTerm ( $ term ) { if ( ! empty ( $ term ) ) { $ this -> showTree = false ; } $ this -> searchTerm = $ term ; }
Applies a search term to the list results, searching will disable tree
view if a value is supplied.
@param string $term
Applies a search term to the list results searching will disable tree view if a value is supplied .