public function setData($data = array())
    {
        

    	//empty local data
    	$this->rows = array();
    	//fill the local data
		foreach($data as $rowId => $cells){
			if(is_array($cells)){
				$this->addRow($rowId, $cells);
			}else if(is_string($cells)){
				$this->addRow($cells);
			}
		}

        
    }
public function setData($data = array())
    {
        

    	//empty local data
    	$this->rows = array();
    	//fill the local data
		foreach($data as $rowId => $cells){
			if(is_array($cells)){
				$this->addRow($rowId, $cells);
			}else if(is_string($cells)){
				$this->addRow($cells);
			}
		}

        
    }
public function setData ( $ data = array ( ) ) { //empty local data $ this -> rows = array ( ) ; //fill the local data foreach ( $ data as $ rowId => $ cells ) { if ( is_array ( $ cells ) ) { $ this -> addRow ( $ rowId , $ cells ) ; } else if ( is_string ( $ cells ) ) { $ this -> addRow ( $ cells ) ; } } }
Short description of method setData

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  array data
@return mixed
Short description of method setData