Пример #1
0
 public function ds_schools($values)
 {
     $dataset = \reasg\ui_datasource::dataset();
     // we use the special entry 'row_attr' to set a row's attributes
     // the 'css' elements sets a rows class attribute
     $dataset->append('1', ['id' => '1', 'school_name' => 'Jose de Diego', 'town' => 'ag', 'type' => 'sc', 'date_created' => '5/14/2015']);
     $dataset->append('2', ['id' => '2', 'school_name' => 'Betances', 'town' => 'ag', 'type' => 'sc', 'date_created' => '6/15/2015']);
     $dataset->append('3', ['id' => '3', 'school_name' => 'John B Waston', 'town' => 'mc', 'type' => 'sc', 'date_created' => '7/16/2015']);
     $dataset->send();
 }