Ejemplo n.º 1
0
 private function pendingRelationship()
 {
     if ($this->registry->getObject('authenticate')->isLoggedIn() == true) {
         $rel = new RelationsGet($registry);
         $pending = $rel->getRelationships(0, $this->getObject('authenticate')->getUser()->getUserID(), 0);
         $this->registry->getObject('template')->buildFromTemplate('header.php', 'pending.php', 'footer.php');
         //echo $pending;
         $this->registry->getObject('template')->getPage()->addTag('pending', array('SQL', $pending));
     } else {
         $this->registry->errorPage('Required Login', 'Please Login to manage your pending connections');
     }
 }