src/FieldMaterialTable.php
public function row(&$material, \samson\pager\Pager & $pager = null, $module = null)
    {
        // Set table row view context
        m()->view($this->row_tmpl);

//        // If there is Navigation for material pass them
//        if (isset($material->onetomany['_structure'])) {
//            foreach ($material->onetomany['_structure'] as $structure) {
//                m()->set('structure', $structure);
//                break;
//            }
//        }

        // Render row template
        return m()
            ->set($material, 'material')
            ->set('pager', $this->pager)
            ->set('structureId', isset($this->nav) ? $this->nav->id : '0')
            ->output();
    }
public function row(&$material, \samson\pager\Pager & $pager = null, $module = null)
    {
        // Set table row view context
        m()->view($this->row_tmpl);

//        // If there is Navigation for material pass them
//        if (isset($material->onetomany['_structure'])) {
//            foreach ($material->onetomany['_structure'] as $structure) {
//                m()->set('structure', $structure);
//                break;
//            }
//        }

        // Render row template
        return m()
            ->set($material, 'material')
            ->set('pager', $this->pager)
            ->set('structureId', isset($this->nav) ? $this->nav->id : '0')
            ->output();
    }
public function row ( & $ material , \ samson \ pager \ Pager & $ pager = null , $ module = null ) { // Set table row view context m ( ) -> view ( $ this -> row_tmpl ) ; //        // If there is Navigation for material pass them //        if (isset($material->onetomany['_structure'])) { //            foreach ($material->onetomany['_structure'] as $structure) { //                m()->set('structure', $structure); //                break; //            } //        } // Render row template return m ( ) -> set ( $ material , 'material' ) -> set ( 'pager' , $ this -> pager ) -> set ( 'structureId' , isset ( $ this -> nav ) ? $ this -> nav -> id : '0' ) -> output ( ) ; }
Function to render rows of the table
@param \samson\activerecord\material $material Material object to fill row info
@return string Rendered row
Function to render rows of the table