how work function of magento getviewurl()? and how it fetch $order->getId()? 

```
public function getViewUrl($order)
{

    return $this->getUrl('*/*/view', array('order_id' => $order->getId()));
}

```

i just want to know how it fecth getId() from which table?