original_string: public function setColsCount($numCols, $toCreate=true, $width=NULL) {
  		/*if (isset($width)==false) {
  			$this->setWide($numCols);
  		}*/
  		if ($toCreate == true) {
  			$count=$this->count();
  			if ($count == 0 || $this->hasOnlyCols($count)) {
  				for($i=$count; $i < $numCols; $i++) {
  					$this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i, $width));
  				}
  			} else {
  				for($i=0; $i < $count; $i++) {
  					$this->getItem($i)->setColsCount($numCols);
  				}
  			}
  		}
  		return $this;
  	}
code: public function setColsCount($numCols, $toCreate=true, $width=NULL) {
  		/*if (isset($width)==false) {
  			$this->setWide($numCols);
  		}*/
  		if ($toCreate == true) {
  			$count=$this->count();
  			if ($count == 0 || $this->hasOnlyCols($count)) {
  				for($i=$count; $i < $numCols; $i++) {
  					$this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i, $width));
  				}
  			} else {
  				for($i=0; $i < $count; $i++) {
  					$this->getItem($i)->setColsCount($numCols);
  				}
  			}
  		}
  		return $this;
  	}
code_tokens: public function setColsCount ( $ numCols , $ toCreate = true , $ width = NULL ) { /*if (isset($width)==false) {
  			$this->setWide($numCols);
  		}*/ if ( $ toCreate == true ) { $ count = $ this -> count ( ) ; if ( $ count == 0 || $ this -> hasOnlyCols ( $ count ) ) { for ( $ i = $ count ; $ i < $ numCols ; $ i ++ ) { $ this -> addItem ( new HtmlGridCol ( "col-" . $ this -> identifier . "-" . $ i , $ width ) ) ; } } else { for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ this -> getItem ( $ i ) -> setColsCount ( $ numCols ) ; } } } return $ this ; }
docstring: Defines the number of columns in the grid
  @param int $numCols
  @param boolean $toCreate
  @param int $width
  @return \Ajax\semantic\html\collections\HtmlGrid
docstring_tokens: Defines the number of columns in the grid