original_string: public function setActiveTerm($term)
      {
          if (strlen($term)) {
              $this->putSession('term', $term);
          } else {
              $this->resetSession();
          }
  
          $this->activeTerm = $term;
      }
code: public function setActiveTerm($term)
      {
          if (strlen($term)) {
              $this->putSession('term', $term);
          } else {
              $this->resetSession();
          }
  
          $this->activeTerm = $term;
      }
code_tokens: public function setActiveTerm ( $ term ) { if ( strlen ( $ term ) ) { $ this -> putSession ( 'term' , $ term ) ; } else { $ this -> resetSession ( ) ; } $ this -> activeTerm = $ term ; }
docstring: Sets an active search term for this widget instance.
docstring_tokens: Sets an active search term for this widget instance .