Helper/Bootstrap/Grid.php
public function auto(
            array $cellsData, 
            int   $nbColsByRow = null, 
            bool  $container = false, 
            array $classes = [], 
            array $attrs = [], 
            array $containerClasses = [], 
            bool  $fluid = true):string
    {
        $nbColsByRow = $nbColsByRow ?? count($cellsData);
        $src = $this->autoStart($nbColsByRow, $container, $fluid, $containerClasses);
        foreach ($cellsData as $cell) {
            $src .= $this->autoNewCol(1, $classes, $attrs);
            $src .= (string) $cell;
        }
        $src .= $this->autoStop();
        return $src;
    }
public function auto(
            array $cellsData, 
            int   $nbColsByRow = null, 
            bool  $container = false, 
            array $classes = [], 
            array $attrs = [], 
            array $containerClasses = [], 
            bool  $fluid = true):string
    {
        $nbColsByRow = $nbColsByRow ?? count($cellsData);
        $src = $this->autoStart($nbColsByRow, $container, $fluid, $containerClasses);
        foreach ($cellsData as $cell) {
            $src .= $this->autoNewCol(1, $classes, $attrs);
            $src .= (string) $cell;
        }
        $src .= $this->autoStop();
        return $src;
    }
public function auto ( array $ cellsData , int $ nbColsByRow = null , bool $ container = false , array $ classes = [ ] , array $ attrs = [ ] , array $ containerClasses = [ ] , bool $ fluid = true ) : string { $ nbColsByRow = $ nbColsByRow ?? count ( $ cellsData ) ; $ src = $ this -> autoStart ( $ nbColsByRow , $ container , $ fluid , $ containerClasses ) ; foreach ( $ cellsData as $ cell ) { $ src .= $ this -> autoNewCol ( 1 , $ classes , $ attrs ) ; $ src .= ( string ) $ cell ; } $ src .= $ this -> autoStop ( ) ; return $ src ; }
Decorate automatically an array of strings with a grid
@param array $cellsData
@param int $nbColsByRow
@return string
Decorate automatically an array of strings with a grid