public function setId($id = null)
    {
        if ($id !== null) {
            $id = preg_replace("/[^a-z0-9_\\\d]/i", '_', $id);

            $this->id = (string) $id;
        }
    }
public function setId($id = null)
    {
        if ($id !== null) {
            $id = preg_replace("/[^a-z0-9_\\\d]/i", '_', $id);

            $this->id = (string) $id;
        }
    }
public function setId ( $ id = null ) { if ( $ id !== null ) { $ id = preg_replace ( "/[^a-z0-9_\\\d]/i" , '_' , $ id ) ; $ this -> id = ( string ) $ id ; } }
Set the grid id.

@param string $id
Set the grid id .