code: public function setSearch($value)
      {
          if (!is_object($value)) {
              if (!isset($value['class'])) {
                  $value['class'] = $this->searchClass;
              }
              $value = Yii::createObject($value);
          }
          $value->dataSource = $this;
          $this->_search = $value;
      }
docs: Set search.
  
  @param [[@doctodo param_type:value]] $value [[@doctodo param_description:value]]