Esempio n. 1
0
 /**
  * Generates grid table rows
  *
  * @param \Engine\Crud\Grid $grid
  * @return string
  */
 public static function _(Grid $grid)
 {
     $code = '
         <tbody>';
     $data = $grid->getDataWithRenderValues();
     foreach ($data['data'] as $row) {
         $rowCode = '
             <tr>';
         foreach ($row as $value) {
             $rowCode .= '
                 <td>' . $value . '</td>';
         }
         $rowCode .= '
             </tr>';
         $code .= $rowCode;
     }
     $code .= '
     </tbody>';
     return $code;
 }