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;
	}
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;
	}
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 ; }
Defines the number of columns in the grid
@param int $numCols
@param boolean $toCreate
@param int $width
@return \Ajax\semantic\html\collections\HtmlGrid
Defines the number of columns in the grid