コード例 #1
0
 public function __construct(Table $table)
 {
     $this->setColumns(['simple_text', ['heading' => 'Is this awesome?', 'value' => function (ExampleModel $entry) {
         if ($entry->isAwesome()) {
             return 'Sure is.';
         }
         return 'Nope.';
     }]]);
     parent::__construct($table);
 }
コード例 #2
0
 /**
  * Create a new MultipleTableBuilder instance.
  *
  * @param Table           $table
  * @param TableCollection $tables
  */
 public function __construct(Table $table, TableCollection $tables)
 {
     $this->tables = $tables;
     parent::__construct($table);
 }