Helper/Bootstrap/Grid.php
public function autoNewCol(int $nbColForThisCell = 1, array $classes = [], array $attrs = []):string
    {
        !$this->autoStarted && $this->autoStart();
        $src = '';
        $this->status === self::STATUS_IN_CELL      && $src .= $this->endCell();
        $this->status === self::STATUS_OK           && $src .= $this->beginContainer($this->autoFluid, $this->autoContainer, $this->autoContainerClasses);
        $this->status === self::STATUS_IN_CONTAINER && $src .= $this->beginRow();
        if ($this->status !== self::STATUS_IN_ROW) {
            Checkers::notice('Bad status, expected: ' . self::STATUS_IN_ROW . ', detected: ' . $this->status);
        }
        if ($this->autoCurrentCol + $nbColForThisCell > $this->autoCols) {
            $src .= $this->endRow()->beginRow();
            $this->autoCurrentCol = 0;
        }
        $src .= $this->callBeginCell($this->autoCols / $nbColForThisCell, $classes, $attrs);
        $this->autoCurrentCol += $nbColForThisCell;
        return $src;
    }
public function autoNewCol(int $nbColForThisCell = 1, array $classes = [], array $attrs = []):string
    {
        !$this->autoStarted && $this->autoStart();
        $src = '';
        $this->status === self::STATUS_IN_CELL      && $src .= $this->endCell();
        $this->status === self::STATUS_OK           && $src .= $this->beginContainer($this->autoFluid, $this->autoContainer, $this->autoContainerClasses);
        $this->status === self::STATUS_IN_CONTAINER && $src .= $this->beginRow();
        if ($this->status !== self::STATUS_IN_ROW) {
            Checkers::notice('Bad status, expected: ' . self::STATUS_IN_ROW . ', detected: ' . $this->status);
        }
        if ($this->autoCurrentCol + $nbColForThisCell > $this->autoCols) {
            $src .= $this->endRow()->beginRow();
            $this->autoCurrentCol = 0;
        }
        $src .= $this->callBeginCell($this->autoCols / $nbColForThisCell, $classes, $attrs);
        $this->autoCurrentCol += $nbColForThisCell;
        return $src;
    }
public function autoNewCol ( int $ nbColForThisCell = 1 , array $ classes = [ ] , array $ attrs = [ ] ) : string { ! $ this -> autoStarted && $ this -> autoStart ( ) ; $ src = '' ; $ this -> status === self :: STATUS_IN_CELL && $ src .= $ this -> endCell ( ) ; $ this -> status === self :: STATUS_OK && $ src .= $ this -> beginContainer ( $ this -> autoFluid , $ this -> autoContainer , $ this -> autoContainerClasses ) ; $ this -> status === self :: STATUS_IN_CONTAINER && $ src .= $ this -> beginRow ( ) ; if ( $ this -> status !== self :: STATUS_IN_ROW ) { Checkers :: notice ( 'Bad status, expected: ' . self :: STATUS_IN_ROW . ', detected: ' . $ this -> status ) ; } if ( $ this -> autoCurrentCol + $ nbColForThisCell > $ this -> autoCols ) { $ src .= $ this -> endRow ( ) -> beginRow ( ) ; $ this -> autoCurrentCol = 0 ; } $ src .= $ this -> callBeginCell ( $ this -> autoCols / $ nbColForThisCell , $ classes , $ attrs ) ; $ this -> autoCurrentCol += $ nbColForThisCell ; return $ src ; }
To call before each data cell
@param int $nbColForThisCell
@return string
To call before each data cell