function populate() { $orders = new SInvoiceLineCollection(new SInvoiceLine()); $pl = new PageList('top_sales_orders'); $customersales = $orders->getTopSales(10); $this->contents = $customersales; }
public function sorders_summary() { $orders = new SInvoiceLineCollection(); $customersales = $orders->getTopSales(10, $this->_data['type']); $this->view->set('content', $customersales); }