public function addCell($numOfColumns = BootstrapCell::COLUMNS_NONE)
	{
		if ($this->columnsOccupied + $numOfColumns > $this->numOfColumns) {
			throw new InvalidArgumentException(
				"the given number of columns with combination of already used"
				. " columns exceeds column limit ({$this->numOfColumns})");
		}

		$cell = new BootstrapCell($this, $numOfColumns);
		$this->cells[] = $cell;

		return $cell;
	}
public function addCell($numOfColumns = BootstrapCell::COLUMNS_NONE)
	{
		if ($this->columnsOccupied + $numOfColumns > $this->numOfColumns) {
			throw new InvalidArgumentException(
				"the given number of columns with combination of already used"
				. " columns exceeds column limit ({$this->numOfColumns})");
		}

		$cell = new BootstrapCell($this, $numOfColumns);
		$this->cells[] = $cell;

		return $cell;
	}
public function addCell ( $ numOfColumns = BootstrapCell :: COLUMNS_NONE ) { if ( $ this -> columnsOccupied + $ numOfColumns > $ this -> numOfColumns ) { throw new InvalidArgumentException ( "the given number of columns with combination of already used" . " columns exceeds column limit ({$this->numOfColumns})" ) ; } $ cell = new BootstrapCell ( $ this , $ numOfColumns ) ; $ this -> cells [ ] = $ cell ; return $ cell ; }
Adds a new cell to which a control can be added.
@param int $numOfColumns Number of grid columns to use up
@return BootstrapCell the cell added.
Adds a new cell to which a control can be added .