public function addFilterText($key, $name, $columns = null)
	{
		$columns = $columns === null? [$key] : (is_string($columns) ? [$columns] : $columns);

		if (!is_array($columns)) {
			throw new DataGridException('Filter Text can accept only array or string.');
		}

		$this->addFilterCheck($key);

		return $this->filters[$key] = new Filter\FilterText($this, $key, $name, $columns);
	}
public function addFilterText($key, $name, $columns = null)
	{
		$columns = $columns === null? [$key] : (is_string($columns) ? [$columns] : $columns);

		if (!is_array($columns)) {
			throw new DataGridException('Filter Text can accept only array or string.');
		}

		$this->addFilterCheck($key);

		return $this->filters[$key] = new Filter\FilterText($this, $key, $name, $columns);
	}
public function addFilterText ( $ key , $ name , $ columns = null ) { $ columns = $ columns === null ? [ $ key ] : ( is_string ( $ columns ) ? [ $ columns ] : $ columns ) ; if ( ! is_array ( $ columns ) ) { throw new DataGridException ( 'Filter Text can accept only array or string.' ) ; } $ this -> addFilterCheck ( $ key ) ; return $ this -> filters [ $ key ] = new Filter \ FilterText ( $ this , $ key , $ name , $ columns ) ; }
Add filter fot text search
@param string       $key
@param string       $name
@param array|string $columns
@return Filter\FilterText
@throws DataGridException
Add filter fot text search