lib/components/types/Module.php
public function search($term, $params = [])
    {
        if (!$this->primaryModel) {
            return false;
        }

        $results = [];
        $modelClass = $this->primaryModel;

        return $modelClass::searchTerm($term, $params);
    }
public function search($term, $params = [])
    {
        if (!$this->primaryModel) {
            return false;
        }

        $results = [];
        $modelClass = $this->primaryModel;

        return $modelClass::searchTerm($term, $params);
    }
[[@doctodo method_description:search]].

@param unknown $term
@param array   $params [[@doctodo param_description:params]] [optional]

@return unknown