/** Retrieve a person's online accounts
  * @access public
  * @param integer $id
  */
 public function OnlineAccountHtml($id)
 {
     $accts = new OnlineAccounts();
     $data = $accts->getAccounts($id);
     if (count($data)) {
         return $this->buildHtml($data);
     }
 }
 /** Profile page
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 public function profileAction()
 {
     if ($this->getParam('id', false)) {
         $id = $this->getParam('id');
         $staffs = new Contacts();
         $this->view->persons = $staffs->getPersonDetails($id);
         $this->view->findstotals = $this->getFinds()->getFindsFloQuarter($id);
         $this->view->periodtotals = $this->getFinds()->getFindsFloPeriod($id);
         $accts = new OnlineAccounts();
         $this->view->accts = $accts->getAccounts($id);
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
 /** Get the data from the model
  * @access public
  * @param int $id
  * @return array
  */
 public function getData($id)
 {
     $accts = new OnlineAccounts();
     return $accts->getAccounts($id);
 }
 /** Display the accounts as foaf
  * 
  * @param integer $id
  */
 public function OnlineAccount($id)
 {
     $accts = new OnlineAccounts();
     $data = $accts->getAccounts($id);
     return $this->view->partialLoop('partials/xml/foafAccts.phtml', $data);
 }