function populate() { $orders = new SOrderLineCollection(new SOrderLine()); $pl = new PageList('top_sales_orders'); $customerorders = $orders->getTopOrders(); $this->contents = $customerorders; }
public function sorders_summary() { $orders = new SOrderLineCollection(DataObjectFactory::Factory('SOrderLine')); $customersales = $orders->getTopOrders(10, $this->_data['type']); $this->view->set('content', $customersales); }