Ejemplo n.º 1
0
 /**
  * @return DataTable
  */
 public function createDataTable()
 {
     $dt = new DataTable();
     $dt->id('id', 'i.id');
     if (!$this->root instanceof Area) {
         $dt->searchableColumn('areaName', 'a.name');
     }
     $dt->searchableColumn('subject', 'i.subject')->column('createdAt', 'i.createdAt')->column('status', 'i.status')->column('responder', 'u.name')->column('duplicate', 'i.duplicate');
     return $dt;
 }
 /**
  * @return DataTable
  */
 public function createDataTable()
 {
     $dt = new DataTable();
     $dt->id('id', 'i.id');
     if (!$this->root instanceof Area) {
         $dt->searchableColumn('areaName', 'a.name');
     }
     $dt->searchableColumn('name', 'i.name')->searchableColumn('registrationType', 'r.registrationType')->searchableColumn('startTime', 'r.startTime')->column('endTime', 'r.endTime')->column('participantLimit', 'r.participantLimit')->column('participantNum', 'r.participantNum');
     return $dt;
 }
Ejemplo n.º 3
0
 /**
  * @return DataTable
  */
 public function createDataTable()
 {
     $dt = new DataTable();
     $dt->id('id', 'i.id');
     if (!$this->root instanceof Area) {
         $dt->searchableColumn('areaName', 'a.name');
     }
     $dt->searchableColumn('name', 'i.name')->searchableColumn('routeFrom', 'i.routeFrom')->searchableColumn('routeTo', 'i.routeTo')->column('routeLength', 'i.routeLength')->column('updatedAt', 'i.updatedAt')->column('approved', 'i.approved')->column('commentNum', 'i.commentNum');
     return $dt;
 }