load($params); $this->validate() ; $inventory = new ProductInventory([ 'account' => $this->account ]); if ( $this->output == 'xls'){ $inventory->pagination = false; } $inventory->createDataProvider(); $dp = $inventory->dataProvider; return $dp; } }