Ejemplo n.º 1
0
 public function init($name = '', $array, $columns, $href, $pagelength = 15, $index = 0)
 {
     parent::init($name, NULL, $columns, $href, $pagelength, $index);
     if ($array) {
         $this->objArray = $array;
     }
 }
Ejemplo n.º 2
0
 /**
  DataGrid2 constructor
  $query - a query object
  $columns - array of columns objects
  $href - base url of this datagrid
  $pageLength - max number of rows to show (0 to show all)
 */
 public function init($name = '', $query = '', $columns = '', $action = '', $pageLength = 15, $index = 0, $useSelecteds = true)
 {
     $this->query = $query;
     parent::init($name, NULL, $columns, $action, $pageLength, $index, $useSelecteds);
 }